Adding package file to theme and using scss instead of css.

This commit is contained in:
calcu1on
2025-04-21 08:13:05 -04:00
parent 3bd38b2d80
commit 967de436f6
7 changed files with 139 additions and 13 deletions

11
theme/package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "batflip",
"version": "1.0.0",
"description": "Theme for Batflip scoring.",
"main": "index.js",
"scripts": {
"build": "sass styles.scss ../public/assets/style.css"
},
"author": "Dan Chadwick",
"license": "MIT"
}

54
theme/reset.scss Normal file
View File

@@ -0,0 +1,54 @@
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
box-sizing: border-box;
}
/* 2. Remove default margin */
* {
margin: 0;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
html {
interpolate-size: allow-keywords;
}
}
body {
/* 4. Add accessible line-height */
line-height: 1.5;
/* 5. Improve text rendering */
-webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
/* 7. Inherit fonts for form controls */
input, button, textarea, select {
font: inherit;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
/* 9. Improve line wrapping */
p {
text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
}
/*
10. Create a root stacking context
*/
#root, #__next {
isolation: isolate;
}

10
theme/styles.scss Normal file
View File

@@ -0,0 +1,10 @@
@import "reset";
body {
background: orange;
}
img {
max-width: 100%;
display: block;
}