Skip to content

Commit 68361d1

Browse files
authored
Style: Merge into single css (#54)
Cursor야 고마워
1 parent b3a8057 commit 68361d1

File tree

4 files changed

+77
-92
lines changed

4 files changed

+77
-92
lines changed

gatsby-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "./static/theme/github-light.css"
1+
import "./src/components/layout.css"

src/components/layout.css

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,82 @@ details[open] summary:before {
126126
content: "▼ ";
127127
}
128128

129+
/* prism syntax highlight */
130+
.token.comment,
131+
.token.prolog,
132+
.token.doctype,
133+
.token.cdata {
134+
color: #6a737d;
135+
font-style: italic;
136+
}
137+
138+
.token.string,
139+
.token.char,
140+
.token.attr-value,
141+
.token.regex,
142+
.token.variable {
143+
color: #032f62;
144+
}
145+
146+
.token.keyword,
147+
.token.atrule,
148+
.token.attr-name {
149+
color: #d73a49;
150+
}
151+
152+
.token.boolean,
153+
.token.number,
154+
.token.constant,
155+
.token.symbol,
156+
.token.url {
157+
color: #005cc5;
158+
}
159+
160+
.token.function,
161+
.token.class-name,
162+
.token.property {
163+
color: #6f42c1;
164+
}
165+
166+
.token.tag,
167+
.token.selector,
168+
.token.entity {
169+
color: #22863a;
170+
}
171+
172+
.token.punctuation,
173+
.token.operator {
174+
color: #24292e;
175+
}
176+
177+
.token.important,
178+
.token.bold {
179+
font-weight: bold;
180+
}
181+
182+
.token.italic {
183+
font-style: italic;
184+
}
185+
186+
.token.inserted {
187+
color: #22863a;
188+
background-color: #f0fff4;
189+
}
190+
191+
.token.deleted {
192+
color: #b31d28;
193+
background-color: #ffeef0;
194+
}
195+
196+
.token.changed {
197+
color: #e36209;
198+
background-color: #ffebda;
199+
}
200+
201+
.token.namespace {
202+
opacity: 0.7;
203+
}
204+
129205
/* custom style */
130206
h1, h2, h3, h4, h5, h6 {
131207
margin-top: 24px;

src/components/layout.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { css } from "@emotion/react"
22
import { Analytics } from "@vercel/analytics/react"
33
import { graphql, Link, useStaticQuery } from "gatsby"
44
import React from "react"
5-
import "./layout.css"
65

76
export default function Layout({ children }) {
87
const data = useStaticQuery(graphql`

static/theme/github-light.css

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)