Bug: T335087 Bug: T337808 Bug: T339962 Bug: T342295 Bug: T343490 Bug: T344178 Change-Id: I8a63d25da31198551a92be548ea161b481ad7ce2 |
||
|---|---|---|
| .. | ||
| 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-design-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>