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 |
||
|---|---|---|
| .. | ||
| mixins | ||
| codex.mjs | ||
| codex.style-legacy-rtl.css | ||
| codex.style-legacy.css | ||
| codex.style-rtl.css | ||
| codex.style.css | ||
| codex.umd.js | ||
| LICENSE | ||
| README.md | ||
Codex
Codex is the design system for Wikimedia. Codex contains:
- Vue and CSS-only components, in this package
- Design tokens, in the
@wikimedia/codex-tokenspackage - Icons, in the
@wikimedia/codex-iconspackage
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>