
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@wikimedia/codex-design-tokens
Advanced tools
Codex is the design system for Wikimedia.
This package contains design tokens that express the visual style of the Codex design system. Tokens are exported as style variables, and are available in CSS, Less and SASS.
See the design tokens overview documentation for links to a complete list of tokens with demos and guidelines.
See the installation and using design tokens documentation for information about how to use Codex design tokens in your application.
The following files are included in the dist/
directory when you install this package or run the build commands locally:
theme-wikimedia-ui.less
: This is the main tokens file used in MediaWiki. All
tokens are defined as Less variables. Tokens for color-modes or font-modes
reference CSS custom properties so that their values can be dynamically updated
at runtime.theme-wikimedia-ui.css
: Defines all design tokens as CSS custom properties. Experimental.theme-wikimedia-ui.scss
: Defines all design tokens as Sass variables. Experimental.theme-wikimedia-ui.js
: Exports all tokens in JavaScript format (ESM). Experimental.theme-wikimedia-ui.json
: JSON data for all tokens from the style-dictionary source.theme-wikimedia-ui-root.css
: This is a CSS file which contains a :root {}
declaration
that sets all mode-specific custom properties to their default values. If you want to support
the various "modes" that Codex provides (alternate token values that can be changed at runtime),
load this file as a starting point. This file is intended to be used alongside the
theme-wikimedia-ui.less
file listed above.These CSS files re-define specific custom properties on the :root {}
declaration with alternate
values particular to a specific "mode" (a dark color scheme, a larger base font size, etc.). They
can be loaded as needed and are intended to override the default values defined in
theme-wikimedia-ui-root.css
or theme-wikimedia-ui.css
.
theme-wikimedia-ui-mode-dark.css
: Dark mode color CSS custom propertiestheme-wikimedia-ui-mode-small.css
: Small font mode CSS custom propertiestheme-wikimedia-ui-mode-large.css
: Large font mode CSS custom propertiestheme-wikimedia-ui-mode-x-large.css
: Extra large font mode CSS custom propertiesEach of these files defines a specific Less mixin (i.e. cdx-mode-dark()
) that
loads an alternate set of token values but limits the scope to whatever selector
it is called in. Use these mixins if you need more granular control over how
modes are used in your application (for example, if only some sections of the
page should change based on user font-mode preference, these mixins could be used).
theme-wikimedia-ui-mixin-dark.less
: Dark mode as a Less mixintheme-wikimedia-ui-mixin-light.less
: Light mode as a Less mixin (aka color mode reset)theme-wikimedia-ui-mixin-small.less
: Small font mode as a Less mixintheme-wikimedia-ui-mixin-medium.less
: Medium font mode as a Less mixin (aka font mode reset)theme-wikimedia-ui-mixin-large.less
: Large font mode as a Less mixintheme-wikimedia-ui-mixin-x-large.less
: Extra large font mode as a Less mixintheme-wikimedia-ui-mixin-mode-reset.less
: Reset all modes (both color and font modes) using the .cdx-mode-reset()
mixin.For information about building design tokens from the source code, see BUILDING.md.
FAQs
Design tokens for Codex in different formats
The npm package @wikimedia/codex-design-tokens receives a total of 3,557 weekly downloads. As such, @wikimedia/codex-design-tokens popularity was classified as popular.
We found that @wikimedia/codex-design-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 25 open source maintainers collaborating on the project.
Did you know?
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.