-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: built-in base styles not work without sira directives.
perf: update plugin addBase logic. refactor: rename dist js dir to plugin. chore: upgrade postcss deps.
- Loading branch information
Showing
21 changed files
with
261 additions
and
319 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,2 +1,2 @@ | ||
@import 'tailwindcss/base'; | ||
@import './base/base.css'; | ||
@import './base/preset.css'; |
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,104 +1,2 @@ | ||
@import 'tailwindcss/base'; | ||
|
||
html { | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
html, | ||
body { | ||
@apply z-0 m-0 p-0; | ||
color: rgb(var(--sira-colors-bw-1000)); | ||
background-color: rgb(var(--sira-colors-bw-50)); | ||
|
||
/* default bw color */ | ||
--sira-color-100: var(--sira-colors-bw-100); | ||
--sira-color-200: var(--sira-colors-bw-200); | ||
--sira-color-300: var(--sira-colors-bw-300); | ||
--sira-color-400: var(--sira-colors-bw-400); | ||
--sira-color-500: var(--sira-colors-bw-500); | ||
--sira-color-600: var(--sira-colors-bw-600); | ||
--sira-color-700: var(--sira-colors-bw-700); | ||
--sira-color-800: var(--sira-colors-bw-800); | ||
--sira-color-900: var(--sira-colors-bw-900); | ||
--sira-color-1000: var(--sira-colors-bw-1000); | ||
--sira-color-1100: var(--sira-colors-bw-1100); | ||
--sira-color-100-contrast: var(--sira-colors-bw-100-contrast); | ||
--sira-color-200-contrast: var(--sira-colors-bw-200-contrast); | ||
--sira-color-300-contrast: var(--sira-colors-bw-300-contrast); | ||
--sira-color-400-contrast: var(--sira-colors-bw-400-contrast); | ||
--sira-color-500-contrast: var(--sira-colors-bw-500-contrast); | ||
--sira-color-600-contrast: var(--sira-colors-bw-600-contrast); | ||
--sira-color-700-contrast: var(--sira-colors-bw-700-contrast); | ||
--sira-color-800-contrast: var(--sira-colors-bw-800-contrast); | ||
--sira-color-900-contrast: var(--sira-colors-bw-900-contrast); | ||
--sira-color-1000-contrast: var(--sira-colors-bw-1000-contrast); | ||
--sira-color-1100-contrast: var(--sira-colors-bw-1100-contrast); | ||
} | ||
|
||
/*************************** Scrollbar */ | ||
/* Works on Firefox */ | ||
*:hover { | ||
scrollbar-color: rgb(var(--sira-colors-bw-600)) transparent; | ||
} | ||
|
||
/* Works on Chrome, Edge, and Safari */ | ||
*::-webkit-scrollbar { | ||
/* avoid div width shift from scrollbar */ | ||
width: 0.4rem; | ||
height: 0.4rem; | ||
background: transparent; | ||
} | ||
|
||
*::-webkit-scrollbar-track { | ||
background-color: transparent; | ||
} | ||
|
||
*:hover::-webkit-scrollbar-thumb, | ||
*::-webkit-scrollbar-thumb:hover { | ||
background-color: rgb(var(--sira-colors-bw-600)); | ||
border: 0.1rem solid transparent; | ||
border-radius: 1.4rem; | ||
-webkit-border-radius: 1.4rem; | ||
-moz-border-radius: 1.4rem; | ||
-ms-border-radius: 1.4rem; | ||
-o-border-radius: 1.4rem; | ||
} | ||
|
||
*::-webkit-scrollbar-thumb { | ||
background-color: transparent; | ||
} | ||
|
||
*::-webkit-scrollbar-corner { | ||
background-color: transparent; | ||
} | ||
|
||
kbd { | ||
display: inline-flex; | ||
font-weight: 600; | ||
white-space: nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 0.375rem; | ||
border-width: 1px; | ||
height: fit-content; | ||
|
||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
|
||
--tw-shadow: 0px 1.5px 0px rgba(0, 0, 0, 0.1); | ||
--tw-shadow-colored: 0px 1.5px 0px var(--tw-shadow-color); | ||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); | ||
|
||
--tw-border-opacity: 1; | ||
border-color: rgba(var(--sira-colors-bw-600), var(--tw-border-opacity)); | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(var(--sira-colors-bw-300), var(--tw-bg-opacity)); | ||
} | ||
|
||
img { | ||
@apply rounded-lg; | ||
} | ||
@import 'preset.css'; |
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,104 @@ | ||
html { | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
html, | ||
body { | ||
z-index: 0; | ||
margin: 0; | ||
padding: 0; | ||
color: rgb(var(--sira-colors-bw-1000)); | ||
background-color: rgb(var(--sira-colors-bw-50)); | ||
|
||
/* default bw color */ | ||
--sira-color-100: var(--sira-colors-bw-100); | ||
--sira-color-200: var(--sira-colors-bw-200); | ||
--sira-color-300: var(--sira-colors-bw-300); | ||
--sira-color-400: var(--sira-colors-bw-400); | ||
--sira-color-500: var(--sira-colors-bw-500); | ||
--sira-color-600: var(--sira-colors-bw-600); | ||
--sira-color-700: var(--sira-colors-bw-700); | ||
--sira-color-800: var(--sira-colors-bw-800); | ||
--sira-color-900: var(--sira-colors-bw-900); | ||
--sira-color-1000: var(--sira-colors-bw-1000); | ||
--sira-color-1100: var(--sira-colors-bw-1100); | ||
--sira-color-100-contrast: var(--sira-colors-bw-100-contrast); | ||
--sira-color-200-contrast: var(--sira-colors-bw-200-contrast); | ||
--sira-color-300-contrast: var(--sira-colors-bw-300-contrast); | ||
--sira-color-400-contrast: var(--sira-colors-bw-400-contrast); | ||
--sira-color-500-contrast: var(--sira-colors-bw-500-contrast); | ||
--sira-color-600-contrast: var(--sira-colors-bw-600-contrast); | ||
--sira-color-700-contrast: var(--sira-colors-bw-700-contrast); | ||
--sira-color-800-contrast: var(--sira-colors-bw-800-contrast); | ||
--sira-color-900-contrast: var(--sira-colors-bw-900-contrast); | ||
--sira-color-1000-contrast: var(--sira-colors-bw-1000-contrast); | ||
--sira-color-1100-contrast: var(--sira-colors-bw-1100-contrast); | ||
} | ||
|
||
/*************************** Scrollbar */ | ||
/* Works on Firefox */ | ||
*:hover { | ||
scrollbar-color: rgb(var(--sira-colors-bw-600)) transparent; | ||
} | ||
|
||
/* Works on Chrome, Edge, and Safari */ | ||
*::-webkit-scrollbar { | ||
/* avoid div width shift from scrollbar */ | ||
width: 0.4rem; | ||
height: 0.4rem; | ||
background: transparent; | ||
} | ||
|
||
*::-webkit-scrollbar-track { | ||
background-color: transparent; | ||
} | ||
|
||
*:hover::-webkit-scrollbar-thumb, | ||
*::-webkit-scrollbar-thumb:hover { | ||
background-color: rgb(var(--sira-colors-bw-600)); | ||
border: 0.1rem solid transparent; | ||
border-radius: 1.4rem; | ||
-webkit-border-radius: 1.4rem; | ||
-moz-border-radius: 1.4rem; | ||
-ms-border-radius: 1.4rem; | ||
-o-border-radius: 1.4rem; | ||
} | ||
|
||
*::-webkit-scrollbar-thumb { | ||
background-color: transparent; | ||
} | ||
|
||
*::-webkit-scrollbar-corner { | ||
background-color: transparent; | ||
} | ||
|
||
kbd { | ||
display: inline-flex; | ||
font-weight: 600; | ||
white-space: nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 0.375rem; | ||
border-width: 1px; | ||
height: fit-content; | ||
|
||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
|
||
--tw-shadow: 0px 1.5px 0px rgba(0, 0, 0, 0.1); | ||
--tw-shadow-colored: 0px 1.5px 0px var(--tw-shadow-color); | ||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); | ||
|
||
--tw-border-opacity: 1; | ||
border-color: rgba(var(--sira-colors-bw-600), var(--tw-border-opacity)); | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(var(--sira-colors-bw-300), var(--tw-bg-opacity)); | ||
} | ||
|
||
img { | ||
border-radius: 0.5rem; | ||
} |
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,12 +1,8 @@ | ||
const { safeList } = require('./dist/js/utils/safelist.js'); | ||
const { safeList } = require('./dist/plugin/utils/safelist.js'); | ||
|
||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
safelist: safeList, | ||
content: process.env.NODE_ENV === 'production' ? [{ raw: '' }] : ['../../apps/**/*.{html,js,ts,tsx,jsx}'], | ||
darkMode: 'class', | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [require('./dist/js')], | ||
safelist: process.env.NODE_ENV === 'production' ? safeList : [], | ||
content: process.env.NODE_ENV === 'production' ? [{ raw: '' }] : ['../../apps/**/*.{html,js,ts,tsx,jsx,css}'], | ||
plugins: [require('./dist/plugin')], | ||
}; |
Oops, something went wrong.
9d4f02f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sira-website – ./
sira-website-git-main-vircx.vercel.app
sira-design.party
sira.vercel.app
sira-website-vircx.vercel.app
www.sira-design.party