Skip to content

Commit

Permalink
chore(staking): symlink design tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvalentin committed May 8, 2024
1 parent 60a93c1 commit 369914f
Show file tree
Hide file tree
Showing 26 changed files with 39 additions and 43 deletions.
3 changes: 3 additions & 0 deletions packages/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@
"@svgr/plugin-jsx": "^8.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@tsconfig/create-react-app": "^1.0.3",
"@vanilla-extract/css": "^1.10.0",
"@vanilla-extract/css-utils": "^0.1.3",
"@vanilla-extract/esbuild-plugin": "^2.2.2",
"@vanilla-extract/recipes": "^0.5.1",
"@vanilla-extract/sprinkles": "^1.5.1",
"@vanilla-extract/vite-plugin": "^3.9.3",
"@vitest/coverage-c8": "^0.31.0",
"antd": "^4.24.10",
Expand Down
1 change: 1 addition & 0 deletions packages/staking/src/design-tokens
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sx } from '@lace/ui';
import { sx } from '../../design-tokens';

export const browsePools = sx({
alignItems: 'stretch',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style } from '@lace/ui';
import { theme } from 'features/theme';
import { style } from '../../design-tokens';

export const title = style({
color: theme.colors.$titleColor,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style, sx } from '@lace/ui';
import { theme } from 'features/theme';
import { style, sx } from '../../../design-tokens';

export const textBoxLeft = style({
borderBottomRightRadius: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx } from '@lace/ui';
import { style, sx } from '../../design-tokens';
import { theme } from '../theme';
const minimumScreenSize = '668px';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx } from '@lace/ui';
import { style, sx } from '../../../../design-tokens';
import { theme } from '../../../theme';

export const metric = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style, sx } from '@lace/ui';
import { recipe } from '@vanilla-extract/recipes';
import { style, sx } from '../../../../design-tokens';
import { theme } from '../../../theme';

export const wrapper = sx({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { style, sx } from '@lace/ui';
import { recipe } from '@vanilla-extract/recipes';
import type { RecipeVariants } from '@vanilla-extract/recipes';
import { style, sx } from '../../../design-tokens';
import { theme } from '../../theme';
import { STAKE_POOL_CARD_HEIGHT } from './constants';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style, sx } from '@lace/ui';
import { theme } from 'features/theme';
import { style, sx } from '../../../design-tokens';

// TODO use new @lace/ui Grid when available: https://input-output.atlassian.net/browse/LW-9791
export const grid = style([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { sx } from '@lace/ui';
import { recipe } from '@vanilla-extract/recipes';
import { theme } from 'features/theme';
import { sx } from '../../../design-tokens';

export const dot = recipe({
base: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style } from '@lace/ui';
import { theme } from 'features/theme';
import { style } from '../../../design-tokens';

export const selectedTitle = style({
color: theme.colors.$titleColor,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { style, sx } from '@lace/ui';
import { recipe } from '@vanilla-extract/recipes';
import { theme } from 'features/theme';
import type { RecipeVariants } from '@vanilla-extract/recipes';
import { style, sx } from '../../../../design-tokens';

export const cellPlaceholder = recipe({
base: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx, vars } from '@lace/ui';
import { style, sx, vars } from '../../../../design-tokens';

export const row = style([
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx, vars } from '@lace/ui';
import { style, sx, vars } from '../../design-tokens';

export const icon = style([
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx } from '@lace/ui';
import { style, sx } from '../../design-tokens';
import { theme } from '../theme';

export const tooltip = style([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx } from '@lace/ui';
import { style, sx } from '../../../../design-tokens';
import { theme } from '../../../theme';

export const SliderContainer = style([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style } from '@lace/ui';
import { style } from '../../../design-tokens';
import { theme } from '../../theme';

export const container = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style, sx } from '@lace/ui';
import { style, sx } from '../../../../design-tokens';
import { theme } from '../../../theme';

export const root = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style } from '@lace/ui';
import { style } from '../../../../design-tokens';
import { theme } from '../../../theme';

export const root = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style } from '@lace/ui';
import { style } from '../../../../design-tokens';
import { theme } from '../../../theme';

export const inputContainer = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { style } from '@lace/ui';
import { style } from '../../../design-tokens';
import { theme } from '../../theme';

export const delegationCardWrapper = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { style } from '@lace/ui';
import { theme } from 'features/theme';
import { style } from '../../design-tokens';

export const sadFaceIcon = style({
height: theme.spacing.$112,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { vars } from '@lace/ui';
import { style } from '@vanilla-extract/css';
import { vars } from '../../design-tokens';
import { theme } from '../theme';

export const stepCircle = style({
Expand Down
11 changes: 10 additions & 1 deletion packages/staking/src/features/theme/theme.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { elevation, fontFamily, fontSizes, fontWeights, lineHeights, opacities, radius, spacing } from '@lace/ui';
import { createGlobalTheme, createThemeContract } from '@vanilla-extract/css';
import {
elevation,
fontFamily,
fontSizes,
fontWeights,
lineHeights,
opacities,
radius,
spacing,
} from '../../design-tokens';
import { colorsContract, darkThemeColors, lightThemeColors } from './colors';

const themeCommon = {
Expand Down
23 changes: 3 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10851,9 +10851,11 @@ __metadata:
"@svgr/plugin-jsx": ^8.0.1
"@testing-library/react-hooks": ^8.0.1
"@tsconfig/create-react-app": ^1.0.3
"@vanilla-extract/css": ^1.11.1
"@vanilla-extract/css": ^1.10.0
"@vanilla-extract/css-utils": ^0.1.3
"@vanilla-extract/esbuild-plugin": ^2.2.2
"@vanilla-extract/recipes": ^0.5.1
"@vanilla-extract/sprinkles": ^1.5.1
"@vanilla-extract/vite-plugin": ^3.9.3
"@vitest/coverage-c8": ^0.31.0
antd: ^4.24.10
Expand Down Expand Up @@ -20909,25 +20911,6 @@ __metadata:
languageName: node
linkType: hard

"@vanilla-extract/css@npm:^1.11.1":
version: 1.11.1
resolution: "@vanilla-extract/css@npm:1.11.1"
dependencies:
"@emotion/hash": ^0.9.0
"@vanilla-extract/private": ^1.0.3
ahocorasick: 1.0.2
chalk: ^4.1.1
css-what: ^6.1.0
cssesc: ^3.0.0
csstype: ^3.0.7
deep-object-diff: ^1.1.9
deepmerge: ^4.2.2
media-query-parser: ^2.0.2
outdent: ^0.8.0
checksum: 1498ced4ba1fd78f3e42567a49daac9eea15e0fa1418d39e4ba5a3e84ded66a5567733f5fa364eaf5fe9c0354124bd62a32ffd603427b76e36004ed49b55c7d2
languageName: node
linkType: hard

"@vanilla-extract/css@npm:^1.14.0":
version: 1.14.0
resolution: "@vanilla-extract/css@npm:1.14.0"
Expand Down

0 comments on commit 369914f

Please sign in to comment.