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 |
||
|---|---|---|
| .. | ||
| 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>