-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Meta: Don't engage tailwind at the component level.
- Loading branch information
Showing
43 changed files
with
270 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@nordcom/nordstar-accented': patch | ||
'@nordcom/nordstar-details': patch | ||
'@nordcom/nordstar-heading': patch | ||
'@nordcom/nordstar-button': patch | ||
'@nordcom/nordstar-header': patch | ||
'@nordcom/nordstar-label': patch | ||
'@nordcom/nordstar-card': patch | ||
'@nordcom/nordstar-view': patch | ||
'@nordcom/nordstar': patch | ||
'@nordcom/nordstar-system': patch | ||
'@nordcom/nordstar-input': patch | ||
--- | ||
|
||
- Don't engage tailwind at the component level. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Accented from './accented'; | ||
|
||
export type { AccentedProps } from './accented'; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Button from './button'; | ||
|
||
export type { ButtonProps } from './button'; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Card from './card'; | ||
|
||
export type { CardDividerProps, CardProps } from './card'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Details from './details'; | ||
|
||
export type { DetailsProps } from './details'; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Heading from './heading'; | ||
|
||
export type { HeadingProps } from './heading'; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Input from './input'; | ||
|
||
export type { InputProps } from './input'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import Label from './label'; | ||
|
||
export type { LabelProps } from './label'; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
import View from './view'; | ||
|
||
export type { ViewProps } from './view'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import './globals.css'; | ||
|
||
// Core | ||
export type { | ||
As, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
darkMode: ['class'], | ||
content: [ | ||
'./src/**/*.{ts,tsx}', | ||
// | ||
'./**/@nordcom/**/dist/**/*.{js,jsx}' | ||
], | ||
theme: { | ||
container: { | ||
center: true, | ||
padding: '2rem', | ||
screens: { | ||
'2xl': '1400px' | ||
} | ||
}, | ||
extend: { | ||
height: { | ||
15: '3.75rem' | ||
}, | ||
brightness: { | ||
65: '.65' | ||
}, | ||
transitionProperty: { | ||
colors: 'color, background-color, border-color, text-decoration-color, fill, stroke, filter' | ||
}, | ||
transitionDuration: { | ||
DEFAULT: '250ms' | ||
}, | ||
fontSize: { | ||
inherit: 'inherit' | ||
}, | ||
fontFamily: { | ||
DEFAULT: ['var(--font-sans, var(--font-fallback))', 'sans-serif'], | ||
heading: ['var(--font-heading, var(--font-sans, var(--font-fallback)))', 'sans-serif'], | ||
body: ['var(--font-heading, var(--font-sans, var(--font-fallback)))', 'sans-serif'], | ||
sans: ['var(--font-sans, var(--font-fallback))', 'sans-serif'], | ||
mono: ['var(--font-mono)', 'monospace'] | ||
}, | ||
fontWeight: { | ||
inherit: 'inherit' | ||
}, | ||
colors: { | ||
foreground: { | ||
DEFAULT: 'hsl(var(--color-foreground))', | ||
highlight: 'hsl(var(--color-foreground-highlight))' | ||
}, | ||
background: { | ||
DEFAULT: 'hsl(var(--color-background))', | ||
highlight: 'hsl(var(--color-background-highlight))' | ||
}, | ||
primary: { | ||
DEFAULT: 'hsl(var(--color-accent-primary))', | ||
foreground: 'hsl(var(--color-accent-primary-foreground))' | ||
}, | ||
secondary: { | ||
DEFAULT: 'hsl(var(--color-accent-secondary))', | ||
foreground: 'hsl(var(--color-accent-secondary-foreground))' | ||
} | ||
}, | ||
borderWidth: { | ||
1: 'var(--border-width-small, 1px)', | ||
2: 'var(--border-width, 2px)', | ||
4: 'var(--border-width-large, 4px)' | ||
}, | ||
strokeWidth: { | ||
1: '0.2rem', | ||
2: '0.25rem', | ||
3: '0.35rem' | ||
}, | ||
aspectRatio: { | ||
'3/2': '3 / 2' | ||
}, | ||
keyframes: { | ||
'scroll-shadow-inset': { | ||
from: { | ||
shadow: 'inset -10px 0px 10px -10px var(--header-scroll-shadow, rgb(155 155 155 / 0.75));' | ||
}, | ||
to: { | ||
shadow: 'inset 10px 0px 10px -10px var(--header-scroll-shadow, rgb(155 155 155 / 0.75));' | ||
} | ||
} | ||
}, | ||
animation: { | ||
'accordion-down': 'accordion-down 0.2s ease-out', | ||
'accordion-up': 'accordion-up 0.2s ease-out' | ||
}, | ||
overflow: {} | ||
} | ||
}, | ||
future: { | ||
hoverOnlyWhenSupported: true | ||
}, | ||
corePlugins: { | ||
preflight: false | ||
}, | ||
plugins: [] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.