PUBLIC_ENVIRONMENT=dev
npm i
npm run dev
Format and lint consecutively
npm run flint
src/styles/global.scss
Tailwind and Scss are configured to use the following values
values | mob | tab | lap | dsk | wde | uwd | suw |
---|---|---|---|---|---|---|---|
before(tablet) | 🔵 | ||||||
before(laptop) | 🔵 | 🔵 | |||||
before(desktop) | 🔵 | 🔵 | 🔵 | ||||
before(wide) | 🔵 | 🔵 | 🔵 | 🔵 | |||
before(ultrawide) | 🔵 | 🔵 | 🔵 | 🔵 | 🔵 | ||
before(superultrawide) | 🔵 | 🔵 | 🔵 | 🔵 | 🔵 | 🔵 | |
after(mobile) | 🔵 | 🔵 | 🔵 | 🔵 | 🔵 | 🔵 | |
after(tablet) | 🔵 | 🔵 | 🔵 | 🔵 | 🔵 | ||
after(laptop) | 🔵 | 🔵 | 🔵 | 🔵 | |||
after(desktop) | 🔵 | 🔵 | 🔵 | ||||
after(wide) | 🔵 | 🔵 | |||||
after(ultrawide) | 🔵 | ||||||
is(small) | 🔵 | 🔵 | |||||
is(medium) | 🔵 | 🔵 | |||||
is(large) | 🔵 | 🔵 | 🔵 | ||||
is(mobile) | 🔵 | ||||||
is(tablet) | 🔵 | ||||||
is(laptop) | 🔵 | ||||||
is(desktop) | 🔵 | ||||||
is(wide) | 🔵 | ||||||
is(ultrawide) | 🔵 | ||||||
is(superultrawide) | 🔵 |
The Size
class can be accessed wherever Svelte Runes are available
if (Size.isSuperultrawide) {
...
}
<div class="after(tablet):text-lg">
...
</div>
@include before(laptop) {
...
};