Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@astrouxds/design-tokens

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrouxds/design-tokens

Astro UXDS Design Tokens

  • 2.0.0-beta.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Astro UXDS Design Tokens

This repo is currently in beta and under heavy development. Do not use in production. Token names ma y change or be removed without any warning. Viewer discretion is advised.

This package includes all of AstroUXDS's design tokens in various different formats for you to consume in your applications.

Documentation

Astro Design Tokens

Installation

npm i @astrouxds/design-tokens@beta

Structure

Each export target has the following files:

  • base.reference.*
    • All of the possible variables.
    • Useful in instances where there aren't any system options.
  • base.system.*
    • A limited set of variables with semantic meaning
    • Useful for creating custom pieces of UI.
  • base.component.*
    • Component-specific variables
    • Useful for recreating existing Astro components.

CSS Custom Properties

@import "node_modules/@astrouxds/design-tokens/dist/css/index.css";

or

@import "node_modules/@astrouxds/design-tokens/dist/css/base.reference.css";
@import "node_modules/@astrouxds/design-tokens/dist/css/base.system.css";
@import "node_modules/@astrouxds/design-tokens/dist/css/base.component.css";

Light Theme Class

@import "node_modules/@astrouxds/design-tokens/dist/css/theme.light.css";

A light-theme class that includes Astro's light theme.

Typography Utility Classes

@import "node_modules/@astrouxds/design-tokens/dist/css/classes/typography.css";

A few utility classes for applying Astro typography.

SASS

@import "node_modules/@astrouxds/design-tokens/dist/scss/base.reference.scss";
@import "node_modules/@astrouxds/design-tokens/dist/scss/base.system.scss";
@import "node_modules/@astrouxds/design-tokens/dist/scss/base.component.scss";

SASS Maps

@import "node_modules/@astrouxds/design-tokens/dist/scss-map-flat/base.reference.scss";
@import "node_modules/@astrouxds/design-tokens/dist/scss-map-flat/base.system.scss";
@import "node_modules/@astrouxds/design-tokens/dist/scss-map-flat/base.component.scss";

A few utility classes for applying Astro typography.

Pipeline

graph TD
    A[Figma] --> B(data/tokens.json)
    B -->|Token Transformer| D["/tokens/*.json"]
    D -->|Style Dictionary| E["/dist"]
    E -->F[CSS]
    E -->G[SASS]
    E -->H[iOS]
    E -->I[JSON]

Contributing

Building locally

yarn make

FAQs

Package last updated on 22 Sep 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc