-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitial-code.js
More file actions
88 lines (85 loc) · 1.97 KB
/
Copy pathinitial-code.js
File metadata and controls
88 lines (85 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
export const defaultLayout = `<div class="-Gdl120d,$core750,$core650,$core600 Fnf-mUss H100vh D-f Jc-c Ai-c P15u;0">
<div class="wrapper Txa-c">
<img class="Mxw480 W100p Mb15u" alt="mlut logo" src="/img/mlut.png">
<div class="Ps W20p Apcr1 Tf -Rt45d M0;a;10u -RedA-red -RedB#b10">
<div class="-Sz100p -Gdl-45d,$redB,$redA;30p,$redA;80p,$redB"></div>
<div class="-Sz100p Ps-a T-50p Bdrd100p -Gdl-90d,$redA,$redA;80p,$redB"></div>
<div class="-Sz100p Ps-a L-50p T0 Bdrd100p -Gdl-90d,$redA,$redA;80p,$redB">
</div>
</div>
<strong class="D C-$accent900 Fns8u Mb5u">
Creative coding!
</strong>
<p class="C-$accent900 Fns5u M0;0;8u">
Yes, you can create pure CSS art using utility classes!
</p>
<button class="btn Mnw16gg P2u;3u Bdrd1u Bgc-$brand Bgc-$brand500_h C#fff">
Getting started
</button>
</div>
</div>
`;
export const defaultConfig = `@use "@mlut/core";
:root {
--ml-brand:#f0438c;
--ml-brand500:rgb(233,30,99);
}
@media (prefers-color-scheme: dark){
:root{
--ml-accent900:#fff;
--ml-core750:#121828;
--ml-core650:#251942;
--ml-core600:#321933;
}
}
@media (prefers-color-scheme: light){
:root{
--ml-accent900:rgb(17,24,39);
--ml-core750:rgb(236,240,246,0.5);
--ml-core650:rgba(218,178,255,0.1);
--ml-core600:rgba(142,197,255,0.4);
}
}
`;
export const errorLayout = `
<div>
<h1> Ooops... </h1>
<h2>
Something went wrong in your Sass-config!
</h2>
<h2>
Check out the console
</h2>
</div>
`;
export const errorStyles = `
@media (prefers-color-scheme: light){
div {
--ml-core800: #f0f0f1;
}
}
@media (prefers-color-scheme: dark){
div {
--ml-core800: #111827;
}
}
* {
margin: 0;
}
div {
background-color:var(--ml-core800);
height: 100%;
weight: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1, h2 {
color: #f0438c;
text-align: center;
width: 100%;
padding: 0;
margin: 0 0 1rem
}
`;