From 90379b2c03184a8a36c510069416f0439e5d83e4 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Tue, 9 Aug 2022 21:06:16 -0500 Subject: [PATCH] chore: set up basic colors --- src/Bootstrap.sass | 29 ----------------------------- src/Bootstrap.test.tsx | 6 ++---- src/Bootstrap.tsx | 22 +--------------------- src/index.sass | 6 ++++++ src/logo.svg | 1 - src/styles/colors.sass | 5 +++++ 6 files changed, 14 insertions(+), 55 deletions(-) delete mode 100644 src/Bootstrap.sass delete mode 100644 src/logo.svg create mode 100644 src/styles/colors.sass diff --git a/src/Bootstrap.sass b/src/Bootstrap.sass deleted file mode 100644 index 8a8eb24..0000000 --- a/src/Bootstrap.sass +++ /dev/null @@ -1,29 +0,0 @@ -.Bootstrap - text-align: center - -.Bootstrap-logo - height: 40vmin - pointer-events: none - -@media (prefers-reduced-motion: no-preference) - .Bootstrap-logo - animation: Bootstrap-logo-spin infinite 20s linear - -.Bootstrap-header - background-color: #282c34 - min-height: 100vh - display: flex - flex-direction: column - align-items: center - justify-content: center - font-size: calc(10px + 2vmin) - color: white - -.Bootstrap-link - color: #61dafb - -@keyframes Bootstrap-logo-spin - from - transform: rotate(0deg) - to - transform: rotate(360deg) diff --git a/src/Bootstrap.test.tsx b/src/Bootstrap.test.tsx index 728516f..05fde7f 100644 --- a/src/Bootstrap.test.tsx +++ b/src/Bootstrap.test.tsx @@ -1,10 +1,8 @@ import React from 'react' -import { render, screen } from '@testing-library/react' +import { render } from '@testing-library/react' import Bootstrap from './Bootstrap' -test('renders learn react link', () => { +test('renders', () => { render() - const linkElement = screen.getByText(/learn react/i) - expect(linkElement).toBeInTheDocument() }) diff --git a/src/Bootstrap.tsx b/src/Bootstrap.tsx index d59749a..e0f1651 100644 --- a/src/Bootstrap.tsx +++ b/src/Bootstrap.tsx @@ -1,27 +1,7 @@ import React from 'react' -import logo from './logo.svg' -import './Bootstrap.sass' - function Bootstrap() { - return ( -
-
- logo -

- Edit src/Bootstrap.tsx and save to reload. -

- - Learn React - -
-
- ) + return
} export default Bootstrap diff --git a/src/index.sass b/src/index.sass index c90088c..406ae4d 100644 --- a/src/index.sass +++ b/src/index.sass @@ -2,6 +2,8 @@ @tailwind components @tailwind utilities +@import ./styles/colors.sass + body margin: 0 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif @@ -10,3 +12,7 @@ body code font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace + +.Chitchatter + background: $background + height: 100vh diff --git a/src/logo.svg b/src/logo.svg deleted file mode 100644 index 9dfc1c0..0000000 --- a/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/styles/colors.sass b/src/styles/colors.sass new file mode 100644 index 0000000..d411996 --- /dev/null +++ b/src/styles/colors.sass @@ -0,0 +1,5 @@ +$background: #282C34 +$chrome-primary: #476BB5 +$chrome-secondary: #293E69 +$text-primary: #A3BBEC +$text-secondary: #5A8AE8