New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wikimedia/codex

Package Overview
Dependencies
Maintainers
24
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wikimedia/codex

Codex Design System for Wikimedia

1.0.0-rc.1
npm
Version published
Weekly downloads
3.7K
-3.56%
Maintainers
24
Weekly downloads
 
Created
Source

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>

Keywords

Codex

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts