-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,052 additions
and
13 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
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
'postcss-nested': {}, | ||
}, | ||
}; |
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,7 +1,25 @@ | ||
import { Card, Button, Profile, Input, Typography } from '@ensdomains/thorin'; | ||
|
||
// Import thorin css | ||
import "@ensdomains/thorin/style.css"; | ||
|
||
// Create component | ||
export const App = () => { | ||
return ( | ||
<div> | ||
hi | ||
<div className="p-4 bg-ens-grey1 min-h-screen"> | ||
<div className="flex items-center justify-end gap-4 pb-8"> | ||
<Button borderRadius={"$full"} width={"$52"}>Connect</Button> | ||
</div> | ||
<div className="w-full max-w-screen-lg mx-auto"> | ||
<Card> | ||
<Profile address='0x225f137127d9067788314bc7fcc1f36746a3c3B5' /> | ||
<Typography fontVariant='headingOne'> | ||
Heading One | ||
</Typography> | ||
<Input label={'Input'} /> | ||
<Button>Button</Button> | ||
</Card> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,69 @@ | ||
import type { Config } from 'tailwindcss'; | ||
import plugin from 'tailwindcss/plugin'; | ||
|
||
const config: Config = { | ||
content: [ | ||
'./src/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
darkMode: 'class', | ||
plugins: [ | ||
plugin(({ addVariant, matchVariant, theme }) => { | ||
// Tailwind variant for not disabled | ||
addVariant('not-disabled', ['&:not([disabled])']); | ||
|
||
matchVariant('vh', (value) => `@media (min-height: ${value})`, { | ||
values: theme('screens'), | ||
}); | ||
|
||
matchVariant('max-vh', (value) => `@media (max-height: ${value})`, { | ||
values: theme('screens'), | ||
}); | ||
}), | ||
], | ||
theme: { | ||
fontFamily: { | ||
sans: ['Satoshi', 'sans-serif'], | ||
serif: ['Mitr', 'sans-serif'], | ||
}, | ||
extend: { | ||
screens: { | ||
xs: '480px', | ||
}, | ||
maxWidth: { | ||
'8xl': '1440px', | ||
}, | ||
aspectRatio: { | ||
cover: '1920 / 1080', | ||
}, | ||
colors: { | ||
ens: { | ||
blue: '#5298FF', | ||
blue2: 'rgba(82, 152, 255, 0.6)', | ||
blue3: 'rgba(82, 152, 255, 0.25)', | ||
green: '#49B393', | ||
indigo: '#5854D6', | ||
orange: '#FF9500', | ||
pink: '#FF2D55', | ||
purple: '#AF52DE', | ||
red: '#D55555', | ||
teal: '#5AC8FA', | ||
yellow: '#E8B811', | ||
grey1: '#F6F6F6', | ||
grey2: '#9B9BA7', | ||
grey3: '#454545', | ||
'gradient-blue': | ||
'linear-gradient(330.4deg, #44BCF0 4.54%, #7298F8 59.2%, #A099FF 148.85%)', | ||
'gradient-purple': | ||
'linear-gradient(323.31deg, #DE82FF -15.56%, #7F6AFF 108.43%)', | ||
'gradient-green': | ||
'linear-gradient(323.31deg, #73A6F2 -15.56%, #42C2AB 108.43%)', | ||
}, | ||
}, | ||
borderRadius: { | ||
ens: '16px', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default config; |
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,8 +1,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"target": "es2022", | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"moduleDetection": "force", | ||
"isolatedModules": true, | ||
"verbatimModuleSyntax": true, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noImplicitOverride": true, | ||
"noEmit": true, | ||
"lib": [ | ||
"es2022", | ||
"dom", | ||
"dom.iterable" | ||
], | ||
"jsx": "react-jsx", | ||
"lib": ["DOM", "ES2022"], | ||
"moduleResolution": "node", | ||
"target": "ES2022" | ||
} | ||
"module": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"baseUrl": ".", | ||
"incremental": true, | ||
"strictNullChecks": true | ||
}, | ||
"include": ["**/*.ts", "**/*.tsx", "postcss.config.js"], | ||
"exclude": ["node_modules"] | ||
} |