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

@sumup/design-tokens

Package Overview
Dependencies
Maintainers
17
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sumup/design-tokens - npm Package Compare versions

Comparing version 7.2.0-next.1 to 7.2.0-next.2

dark-scoped.css

24

dist/cjs/scripts/build.js

@@ -53,2 +53,22 @@ #!/usr/bin/env node

{
name: 'light-scoped',
groups: [
{
tokens: light_js_1.light,
selectors: ['[data-color-scheme="light"]'],
colorScheme: 'light',
},
],
},
{
name: 'dark-scoped',
groups: [
{
tokens: dark_js_1.dark,
selectors: ['[data-color-scheme="dark"]'],
colorScheme: 'dark',
},
],
},
{
name: 'dynamic',

@@ -114,6 +134,6 @@ groups: [

});
// Validate that all tokens have a default value defined at the root
// Validate that the tokens at the root are complete
const rootGroup = theme.groups.find((group) => group.selectors.length === 1 && group.selectors[0] === ':root');
if (!rootGroup) {
throw new Error(`The "${theme.name}" theme does not define any global tokens. Add them to the ":root" selector.`);
return;
}

@@ -120,0 +140,0 @@ if (rootGroup.tokens.length !== schema_js_1.schema.length) {

@@ -47,2 +47,22 @@ #!/usr/bin/env node

{
name: 'light-scoped',
groups: [
{
tokens: light,
selectors: ['[data-color-scheme="light"]'],
colorScheme: 'light',
},
],
},
{
name: 'dark-scoped',
groups: [
{
tokens: dark,
selectors: ['[data-color-scheme="dark"]'],
colorScheme: 'dark',
},
],
},
{
name: 'dynamic',

@@ -108,6 +128,6 @@ groups: [

});
// Validate that all tokens have a default value defined at the root
// Validate that the tokens at the root are complete
const rootGroup = theme.groups.find((group) => group.selectors.length === 1 && group.selectors[0] === ':root');
if (!rootGroup) {
throw new Error(`The "${theme.name}" theme does not define any global tokens. Add them to the ":root" selector.`);
return;
}

@@ -114,0 +134,0 @@ if (rootGroup.tokens.length !== schema.length) {

2

package.json
{
"name": "@sumup/design-tokens",
"version": "7.2.0-next.1",
"version": "7.2.0-next.2",
"description": "Visual primitives such as typography, color, and spacing that are shared across platforms.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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