Clone this repo:
  1. dc54714 Icons: refine icon library by Derek Torsani · 6 weeks ago main
  2. 7f4fce2 Tokens: Add generic color tokens for volunteer usage by Derek Torsani · 5 weeks ago
  3. f665e73 fix(Message): correct vertical align for css-only icon messages by Sergio Gimeno · 4 weeks ago
  4. cc3c583 Popover: Remove unnecessary wrapper ref for the anchor by Roan Kattouw · 6 weeks ago
  5. 44a2d64 build: Lint Markdown script blocks with 'eslint-plugin-markdown' by Volker E. · 8 weeks ago

Codex

Codex is the design system for Wikimedia. The Codex repository contains four packages:

Codex features:

  • Wide-ranging support for internationalization and global usage
  • Web accessibility compliant (Web Content Accessibility Guidelines 2.1 level AA)
  • Comprehensive browser and device support

Quick start

Usage

To install:

npm install --save-dev @wikimedia/codex @wikimedia/codex-icons

To use components:

import { CdxButton, CdxTextInput } from '@wikimedia/codex';

To use icons:

import { cdxIconAlert, cdxIconNewWindow } from '@wikimedia/codex-icons';

For more information on how to set up and use the library, refer to the usage documentation.

Development

Codex development requires the following:

  • Node: the required version of Node is pinned in .nvmrc. To install and use the required version, run nvm install "$(<.nvmrc)" then nvm use in the root of the repository. Node Version Manager (NVM) is a handy tool that lets you install and switch between multiple versions of Node on your machine. This is especially useful when working on multiple projects that depend on different Node versions.
    Learn more about NVM on GitHub.
  • npm: version 7 or higher is required to support workspaces. You can install latest version of npm with nvm via nvm install --latest-npm.

Helpful commands:

  • npm install in the root of the repository to install requirements for all workspaces
  • npm run doc:dev to start the docs site
  • npm run dev to start the Vite sandbox
  • npm run test:unit -w @wikimedia/codex to run unit tests for e.g. the codex workspace. Read more about testing.

Refer to the contributing code guidelines for more information.

Contributing

If you'd like to contribute, head over to the contributing docs to learn about our processes and ways you can contribute.

Maintainers

Codex is maintained by the Design System Team of the Wikimedia Foundation. It is designed and developed by contributors from the Wikimedia Foundation, Wikimedia Deutschland, and the Wikimedia volunteer community.

To contact us or to learn more about current and future work, visit our workboard or the Design System Team page on mediawiki.org.