Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very early draft of new tokens #1573

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/design-tokens/src/scss/@global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@forward 'global';
17 changes: 17 additions & 0 deletions packages/design-tokens/src/scss/@themes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@use 'themes/light' as theme-light;
@use 'themes/light-inverted' as theme-light-inverted;

$themes: (
// The first theme is the default theme, as the left column in the Figma table.
light:
(
colors: theme-light.$colors,
gradients: theme-light.$gradients,
shadows: theme-light.$shadows,
),
light-inverted: (
colors: theme-light-inverted.$colors,
gradients: theme-light-inverted.$gradients,
shadows: theme-light-inverted.$shadows,
)
);
1 change: 0 additions & 1 deletion packages/design-tokens/src/scss/@tokens.scss

This file was deleted.

194 changes: 0 additions & 194 deletions packages/design-tokens/src/scss/generated/_colors.scss

This file was deleted.

6 changes: 0 additions & 6 deletions packages/design-tokens/src/scss/generated/_gradients.scss

This file was deleted.

30 changes: 0 additions & 30 deletions packages/design-tokens/src/scss/generated/_measures.scss

This file was deleted.

12 changes: 0 additions & 12 deletions packages/design-tokens/src/scss/generated/_radii.scss

This file was deleted.

8 changes: 0 additions & 8 deletions packages/design-tokens/src/scss/generated/index.scss

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Generated Borders from Supernova. Do not edit manually.
$border-style-0: none !default;
$border-style-100: solid !default;
$border-style-200: dashed !default;
// Manually created from Figma
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not edit manually.
Manually created from Figma

🎉

$border-none: none !default;
$border-solid: solid !default;
$border-dashed: dashed !default;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have border-width below. Shouldn't this be border-style?

$border-width-0: 0 !default;
$border-width-100: 1px !default;
$border-width-200: 2px !default;
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
// Generated Generic Tokens (Other) from Supernova. Do not edit manually.
// Manually created from Figma
$container-max-width: 1280px !default;
$grid-columns: 12 !default;

$breakpoint-mobile: 0 !default;
$container-padding-mobile: 16px !default;
$grid-gutter-mobile: 16px !default;
$breakpoint-tablet: 768px !default;
$container-padding-tablet: 32px !default;
$grid-gutter-tablet: 32px !default;
$breakpoint-desktop: 1280px !default;

$container-padding-mobile: 16px !default;
$container-padding-tablet: 32px !default;
$container-padding-desktop: 32px !default;

$grid-columns: 12 !default;

$grid-gutter-mobile: 16px !default;
$grid-gutter-tablet: 32px !default;
$grid-gutter-desktop: 32px !default;

$containers: (
Expand Down
19 changes: 19 additions & 0 deletions packages/design-tokens/src/scss/global/_radii.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Generated Radii from Supernova. Do not edit manually.
// Manually created from Figma
$radius-0: 0 !default;
$radius-100: 2px !default;
$radius-200: 4px !default;
$radius-300: 8px !default;
$radius-400: 12px !default;
$radius-500: 16px !default;
$radius-full: 9999px !default;

$radii: (
0: $radius-0,
100: $radius-100,
200: $radius-200,
300: $radius-300,
400: $radius-400,
500: $radius-500,
full: $radius-full,
) !default;
41 changes: 41 additions & 0 deletions packages/design-tokens/src/scss/global/_spaces.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Generated Measures from Supernova. Do not edit manually.
// Manually created from Figma
$space-0: 0 !default;
$space-100: 1px !default;
$space-200: 2px !default;
$space-300: 4px !default;
$space-400: 6px !default;
$space-500: 8px !default;
$space-600: 12px !default;
$space-700: 16px !default;
$space-800: 20px !default;
$space-900: 24px !default;
$space-1000: 32px !default;
$space-1100: 40px !default;
$space-1200: 48px !default;
$space-1300: 56px !default;
$space-1400: 64px !default;
$space-1500: 72px !default;
$space-1600: 80px !default;
$space-1700: 96px !default;

$spaces: (
0: $space-0,
100: $space-100,
200: $space-200,
300: $space-300,
400: $space-400,
500: $space-500,
600: $space-600,
700: $space-700,
800: $space-800,
900: $space-900,
1000: $space-1000,
1100: $space-1100,
1200: $space-1200,
1300: $space-1300,
1400: $space-1400,
1500: $space-1500,
1600: $space-1600,
1700: $space-1700,
) !default;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Generated Typography from Supernova. Do not edit manually.
// NOT EDITED YET
$body-large-text-bold: (
mobile: (
font-family: "'Inter', sans-serif",
Expand Down
5 changes: 5 additions & 0 deletions packages/design-tokens/src/scss/global/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@forward 'global/borders';
@forward 'global/other';
@forward 'global/radii';
@forward 'global/spaces';
@forward 'global/typography';
1 change: 0 additions & 1 deletion packages/design-tokens/src/scss/index.scss

This file was deleted.

Loading
Loading