wiki.techinc.nl/resources/lib/codex
Volker E 10bfe4b379 Update Codex from v0.10.0 to v0.11.0
Bug: T295711
Bug: T311026
Bug: T314661
Bug: T322436
Bug: T323179
Bug: T325105
Bug: T325769
Bug: T325788
Bug: T328492
Bug: T331034
Bug: T333030
Bug: T333392
Bug: T335694
Bug: T336533
Bug: T336954
Change-Id: I9db6eff7acf10b549fa968cea350efc115d78096
2023-05-23 14:54:49 -07:00
..
mixins Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
codex.mjs Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
codex.style-legacy-rtl.css Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
codex.style-legacy.css Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
codex.style-rtl.css Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
codex.style.css Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
codex.umd.js Update Codex from v0.10.0 to v0.11.0 2023-05-23 14:54:49 -07:00
LICENSE
README.md Update Codex from v0.9.1 to v0.10.0 2023-05-11 10:43:23 -04:00

Codex

Codex is the design system for Wikimedia. Codex contains:

  • Vue and CSS-only components, in this package
  • Design tokens, in the @wikimedia/codex-tokens package
  • Icons, in the @wikimedia/codex-icons package

For more details, read the Codex documentation.

Using Codex components

To use a component, import it from this package:

// If using ES modules:
import { CdxButton } from '@wikimedia/codex';

// or, if using CommonJS:
const { CdxButton } = require( '@wikimedia/codex' );

then pass it into the components option of your Vue component:

<template>
	<div>
		<cdx-button action="progressive" weight="primary">
			Click me!
		</cdx-button>
	</div>
</template>

<script>
import { defineComponent } from 'vue';
import { CdxButton } from '@wikimedia/codex';

export default defineComponent( {
	components: {
		CdxButton
	},
	// ...
} );
</script>