wiki.techinc.nl/resources/lib/codex
Anne Tomasevich 9f8039d169 Update Codex from v0.16.1 to v0.17.0
Bug: T335087
Bug: T337808
Bug: T339962
Bug: T342295
Bug: T343490
Bug: T344178
Change-Id: I8a63d25da31198551a92be548ea161b481ad7ce2
2023-08-16 12:35:28 -04:00
..
mixins Update Codex from v0.15.0 to v0.16.1 2023-08-01 16:28:59 -07:00
codex.mjs Update Codex from v0.16.1 to v0.17.0 2023-08-16 12:35:28 -04:00
codex.style-legacy-rtl.css Update Codex from v0.16.1 to v0.17.0 2023-08-16 12:35:28 -04:00
codex.style-legacy.css Update Codex from v0.16.1 to v0.17.0 2023-08-16 12:35:28 -04:00
codex.style-rtl.css Update Codex from v0.16.1 to v0.17.0 2023-08-16 12:35:28 -04:00
codex.style.css Update Codex from v0.16.1 to v0.17.0 2023-08-16 12:35:28 -04:00
codex.umd.js Update Codex from v0.16.1 to v0.17.0 2023-08-16 12:35:28 -04:00
LICENSE
README.md Update Codex from v0.12.0 to v0.13.0 2023-06-20 14:00:44 -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-design-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>