Skip to content

Commit 30525ba

Browse files
committed
main color refactor
1 parent 6925b80 commit 30525ba

28 files changed

+111
-116
lines changed

pages/brand.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div className="p-4">
1717
</div>
1818

19-
<div className="bg-onyx p-4">
19+
<div className="bg-gray-95 p-4">
2020
<img className="h-24" src="/static/brand/rescript-logo-white.svg" />
2121
</div>
2222

src/Blog.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Blog.res

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Badge = {
3434
let text = badge->BlogFrontmatter.Badge.toString
3535

3636
<div
37-
className={bgColor ++ " flex items-center h-6 font-medium tracking-tight text-onyx-80 text-14 px-2 rounded-sm"}>
37+
className={bgColor ++ " flex items-center h-6 font-medium tracking-tight text-gray-80-tr text-14 px-2 rounded-sm"}>
3838
<div> <img className="h-3 block mr-1" src="/static/star.svg" /> </div>
3939
<div> {React.string(text)} </div>
4040
</div>
@@ -47,12 +47,12 @@ module CategorySelector = {
4747
| Category(BlogFrontmatter.Category.t)
4848

4949
let renderTab = (~text: string, ~isActive: bool, ~onClick) => {
50-
let active = "bg-snow-dark text-onyx rounded py-1"
50+
let active = "bg-gray-10 text-gray-80 rounded py-1"
5151
<div
5252
key=text
5353
onClick
5454
className={(
55-
isActive ? active : "hover:cursor-pointer hover:text-onyx"
55+
isActive ? active : "hover:cursor-pointer hover:text-gray-80"
5656
) ++ " px-4 inline-block"}>
5757
{React.string(text)}
5858
</div>
@@ -66,7 +66,7 @@ module CategorySelector = {
6666
) => {
6767
let tabs = [All, Archived]->Js.Array2.concat(Belt.Array.map(categories, cat => Category(cat)))
6868

69-
<div className="text-16 w-full flex items-center justify-between text-onyx-50">
69+
<div className="text-16 w-full flex items-center justify-between text-gray-60">
7070
{Belt.Array.map(tabs, tab => {
7171
let onClick = evt => {
7272
evt->ReactEvent.Mouse.preventDefault
@@ -182,13 +182,13 @@ module FeatureCard = {
182182
<div className="max-w-400 ">
183183
<h2 className=Text.H2.default> {React.string(title)} </h2>
184184
<div className="mb-6">
185-
<div className="flex items-center font-medium text-onyx-50 text-sm my-2">
185+
<div className="flex items-center font-medium text-gray-40 text-sm mt-2 mb-5">
186186
<div className="inline-block w-4 h-4 mr-2"> authorImg </div>
187187
<div>
188188
{switch author.twitter->Js.Null.toOption {
189189
| Some(handle) =>
190190
<a
191-
className="hover:text-onyx-80"
191+
className="hover:text-gray-80"
192192
href={"https://twitter.com/" ++ handle}
193193
rel="noopener noreferrer"
194194
target="_blank">
@@ -207,7 +207,7 @@ module FeatureCard = {
207207
{date->Util.Date.toDayMonthYear->React.string}
208208
</div>
209209
</div>
210-
<p className="text-night-dark text-16"> {React.string(firstParagraph)} </p>
210+
<p className="text-gray-90 antialiased tracking-tight text-16"> {React.string(firstParagraph)} </p>
211211
</div>
212212
</div>
213213
<Link href="/blog/[slug]" _as={"/blog/" ++ slug}>

src/BlogArticle.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BlogArticle.res

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ module BlogHeader = {
9090
let authors = Belt.Array.concat([author], co_authors)
9191

9292
<div className="flex flex-col items-center">
93-
<div className="w-full max-w-705">
94-
<div className="text-night-light text-lg mb-5">
93+
<div className="w-full max-w-740">
94+
<div className="text-gray-60 text-lg mb-5">
9595
{switch category {
9696
| Some(category) => <> {React.string(category)} {React.string(middleDotSpacer)} </>
9797
| None => React.null
@@ -103,7 +103,7 @@ module BlogHeader = {
103103
switch desc {
104104
| "" => <div className="mb-8" />
105105
| desc =>
106-
<div className="my-8 text-onyx">
106+
<div className="my-8 text-gray-95">
107107
<Markdown.Intro> {React.string(desc)} </Markdown.Intro>
108108
</div>
109109
}
@@ -128,7 +128,7 @@ module BlogHeader = {
128128
style={ReactDOMStyle.make(~maxHeight="33.625rem", ())}
129129
/>
130130
</div>
131-
| None => <div className="max-w-705 w-full"> <Line /> </div>
131+
| None => <div className="max-w-740 w-full"> <Line /> </div>
132132
}}
133133
</div>
134134
}
@@ -200,7 +200,7 @@ let default = (props: props) => {
200200
/>
201201
</div>
202202
<div className="flex justify-center">
203-
<div className="max-w-705 w-full">
203+
<div className="max-w-740 w-full">
204204
archivedNote
205205
children
206206
{switch canonical->Js.Null.toOption {

src/Packages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module InfoSidebar = {
247247

248248
@react.component
249249
let make = (~setFilter: (Filter.t => Filter.t) => unit, ~filter: Filter.t) => {
250-
let h2 = "group mb-3 text-14 uppercase leading-1 font-sans font-medium text-onyx"
250+
let h2 = "group mb-3 text-14 uppercase leading-1 font-sans font-medium text-gray-95"
251251
let link = "hover:underline"
252252

253253
<aside className=" border-l-2 p-4 py-12 border-fire-30 space-y-16">

src/common/App.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/App.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ let make = (props: props): React.element => {
122122
<MainLayout>
123123
<Meta ?title ?description />
124124
<div className="flex justify-center">
125-
<div className="max-w-705 w-full"> content </div>
125+
<div className="max-w-740 w-full"> content </div>
126126
</div>
127127
</MainLayout>
128128
}

src/components/ApiMarkdown.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)