style(site): add initial color theme variables
This commit is contained in:
parent
ca89e59ea7
commit
72874430a0
4 changed files with 16 additions and 3 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": false,
|
||||||
"js/ts.implicitProjectConfig.checkJs": true,
|
"js/ts.implicitProjectConfig.checkJs": true,
|
||||||
"cSpell.words": [
|
"cSpell.words": [
|
||||||
"citty",
|
"citty",
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
<header
|
<header
|
||||||
style="
|
style="
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: linear-gradient(45deg, #3054bf, #416fff);
|
background: linear-gradient(
|
||||||
|
45deg in oklch,
|
||||||
|
var(--color-blue),
|
||||||
|
var(--color-blue-fade)
|
||||||
|
);
|
||||||
color: white;
|
color: white;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin: 1em auto;
|
margin: 1em auto;
|
||||||
|
|
|
@ -24,6 +24,15 @@
|
||||||
content="McFly is a no-framework framework that assists in leveraging the web platform."
|
content="McFly is a no-framework framework that assists in leveraging the web platform."
|
||||||
/>
|
/>
|
||||||
<style>
|
<style>
|
||||||
|
:root {
|
||||||
|
--color-blue: oklch(48.44% 0.173 265.97);
|
||||||
|
--color-blue-fade: oklch(59.43% 0.22 266.22);
|
||||||
|
--color-green: oklch(70.57% 0.205 144.57);
|
||||||
|
--color-orange: oklch(69.58% 0.125 86.58);
|
||||||
|
--color-red: oklch(54.18% 0.18 7.98);
|
||||||
|
--color-blue-gray: oklch(41.1% 0.059 269.95);
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||||
max-width: 40em;
|
max-width: 40em;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
full-stack, no-framework framework that assists developers in
|
full-stack, no-framework framework that assists developers in
|
||||||
leveraging the web platform.
|
leveraging the web platform.
|
||||||
</p>
|
</p>
|
||||||
<code-block>npm create <strong style="color:#3054bf">mcfly</strong>@latest</code-block>
|
<code-block>npm create <strong style="color: var(--color-blue)">mcfly</strong>@latest</code-block>
|
||||||
<p>
|
<p>
|
||||||
Here's a sample interactive custom element:
|
Here's a sample interactive custom element:
|
||||||
<vanilla-hello-world data-name="McFly"></vanilla-hello-world>
|
<vanilla-hello-world data-name="McFly"></vanilla-hello-world>
|
||||||
|
|
Loading…
Reference in a new issue