wiki.techinc.nl/resources/lib/codex
Eric Gardner e346a4e8ca Update Codex from v0.11.0 to v0.12.0
Bug: T284273
Bug: T325105
Bug: T326665
Bug: T330803
Bug: T331034
Bug: T331040
Bug: T331042
Bug: T332124
Bug: T333394
Bug: T333437
Bug: T335694
Bug: T337279
Bug: T337282
Bug: T337429
Bug: T337442
Bug: T338144
Bug: T338177
Change-Id: I1144275b7199f7388620f16886c9208d2f9d09de
2023-06-06 13:45:16 -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.11.0 to v0.12.0 2023-06-06 13:45:16 -07:00
codex.style-legacy-rtl.css Update Codex from v0.11.0 to v0.12.0 2023-06-06 13:45:16 -07:00
codex.style-legacy.css Update Codex from v0.11.0 to v0.12.0 2023-06-06 13:45:16 -07:00
codex.style-rtl.css Update Codex from v0.11.0 to v0.12.0 2023-06-06 13:45:16 -07:00
codex.style.css Update Codex from v0.11.0 to v0.12.0 2023-06-06 13:45:16 -07:00
codex.umd.js Update Codex from v0.11.0 to v0.12.0 2023-06-06 13:45:16 -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>