Files
react.dev/beta/tailwind.config.js
Ricky 41f1ca291a [Beta] Homepage (#5501)
* twk

* more

* twkg

* bla

* search bar, blog, misc polish

* fixes

* polish

* fixes

* polish

* adding back select

* change order on mobile

* fixes

* search fix

* fix

* make select chevron clickable

* add isLoading boolean to example4

* wip

* tweak

* wip

* rewire

* wip

* tweaks

* wip

* wip

* twk

* content

* twk

* twk

* twk

* fix

* wip

* adding community marquee

* fix

* polish

* polish

* optimize img

* images

* 8 images

* stuff

* swap

* words

* making the button fun

* slightly more subtle

* checking in OG images

* tweak

* words

* lol

* improve blog section

* algolia.css improvements

* words

* fix

* wat

* Revert "8 images"

This reverts commit 31c69ed78c.

* wip

* 8 images

* add new badge and bottom align date

* change icon

* rm new for now

* change icon

* img

* Revert "change icon"

This reverts commit a2758b97b5.

* mobile fixes for marquee

* like button tweaks

* polish

* en dash

* adding ctas

* clean up images, wire up og

* more subtle search

* smaller divider

* remove search shadow

* cta

* cleanup

* cta

* refactor

* Revert "remove search shadow"

This reverts commit a4e0d97211.

* Revert "smaller divider"

This reverts commit 0996b5bede.

* Revert "more subtle search"

This reverts commit 734b5d7129.

* scroll topg

* tweaks

* tweaks

* cta

* words

* words

* typo

* batch of visual polish / touches

* tweak

* add subheader component

* algolia css fixes

* border

* tweaks

* tweak

* polish

* tweak

* gradient text

* flip gradient text

* grad

* gr

* tweak

* swap

* reorder

* rm

* caps

* updated fonts

* top nav tweak

* tweak

* more rounded left/right bars

* `Conferences`: Move past conferences to past section (#5544)

* Move past conferences to past section

* Update ordering for past conferences, most recent first

* added React Nexus to conference list in beta docs (#5552)

* Fix typo in flushSync docs (#5589)

* fix: change experimental_useEvent to experimental_useEffectEvent in escape-hatches.md (#5573)

* Fix typo in forwardRef Beta Docs Reference (#5570)

* Fixed wrong debug command (#5596)

* Forgotten import statement for `createElement` (#5601)

Added `createElement` in the import statement since it was used within the code snippet but was not imported.

* docs: fix `react-hooks/exhaustive-dependencies` typo (#5605)

The rule is `exhaustive-deps`, not `exhaustive-dependencies`.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* fix: correct prev link in `hello-world` (#5595)

* fix typo (#5611)

* Fix fonts

* Update .gitignore

* more preload

* meh

* fixes

* fix missing

* increase width

* words

* twl

* put real images

* blog fixes

* all imgs

* read more button

* add react text on large screens

* misc polish, new icons, footer tweaks

* change pitfall icon

* fix

* add gradient

* fix

* blog updates

* scroll lock

* fit

* blog tweaks

* display

* smaller images

* tweaks

* separate component

* fix some hanging words

* tinier images

* even tinier I guess

* small a11y fixes

* minor

* add experimental_

* check in images

* compress

* lazy load community

* fix

* outline

* svg conf bgs

* crush images

* reorder images for balance

* bg in case images don't load

* RN CTA target=_blank

* refactor

* rmfixed

* eager lazyg

* dimensions

* add some content vis

* lock

* detect scroll without event

* ts

* check

* Revert "check"

This reverts commit c4048920b7.

* remove feedback on mobile

* just "Go truly native"

* anim-fix

* fix stretching

* tsc

* more scroll perf

* mobile nav fixes

* z-index fix

* z

* next/link for CTA for scroll restoration and client-side nav

* logo symmetry

* curly quotes

* fix

* fix wrapping on mobile on platform section

* highlights

* polish

* tweaks

* fix safari

* adjust outline above SearchInput

* symmetry

* spacing

* tweak

* nbsp

* orphans

* fix

* no match

* oops

* extract posts

* fixnav

* let them play a bit more

* don't animate until hydration

* fix boundaries calc

* fix og images

* 404

* twks

* fix likes

* less aggro lock

* no initial fadein

* gpu

* fix sticky

* more opt

* clearer

* twk

* wip

* wip

* wip

* wip

* post

* tweak shadows

* nav animation

* twk

* fix

* fix grid alignment

* fix

* animation tweak

* wip

* stuff

* recommend to

* drop spin

* link

* edits

* edit

* twk

* clarify

* twk

* twk

* twk

* link

* edits

* dates

* fix

* edits

* words

* fixes

* refactor

* tweak

* twk

* custom setups

* expo

---------

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: D <dan.lebo@me.com>
Co-authored-by: Sophie Alpert <git@sophiebits.com>
Co-authored-by: Nick Foden <nickfoden@gmail.com>
Co-authored-by: Kiran Abburi <akiran@users.noreply.github.com>
Co-authored-by: Minh Nguyen <2852660+NMinhNguyen@users.noreply.github.com>
Co-authored-by: LamNVQ <97967630+DawnGate@users.noreply.github.com>
Co-authored-by: Hyunseung Lee <hyunseunglee2008@gmail.com>
Co-authored-by: BIKI DAS <bikid475@gmail.com>
Co-authored-by: Mark Evola <76978800+MarkE16@users.noreply.github.com>
Co-authored-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Xavi Lee <awxiaoxian2020@163.com>
Co-authored-by: 이동현 <ldh19971027@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@me.com>
2023-03-16 18:18:00 +00:00

152 lines
5.0 KiB
JavaScript

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('./colors');
module.exports = {
content: [
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/styles/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
theme: {
// Override base screen sizes
screens: {
...defaultTheme.screens,
betterhover: {raw: '(hover: hover)'},
xs: '374px',
'3xl': '1919px',
},
boxShadow: {
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
DEFAULT:
'0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
lg: '0px 0.8px 2px rgba(0, 0, 0, 0.032), 0px 2.7px 6.7px rgba(0, 0, 0, 0.048), 0px 12px 30px rgba(0, 0, 0, 0.08)',
'lg-dark':
'0 0 0 1px rgba(255,255,255,.15), 0px 0.8px 2px rgba(0, 0, 0, 0.032), 0px 2.7px 6.7px rgba(0, 0, 0, 0.048), 0px 12px 30px rgba(0, 0, 0, 0.08)',
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
'3xl': '0 35px 60px -15px rgba(0, 0, 0, 0.3)',
nav: '0 16px 32px -16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,.10)',
'nav-dark':
'0 16px 32px -16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255,255,255,.05)',
inner: 'inset 0 1px 4px 0 rgba(0, 0, 0, 0.05)',
'inner-border': 'inset 0 0 0 1px rgba(0, 0, 0, 0.08)',
'inner-border-dark': 'inset 0 0 0 1px rgba(255, 255, 255, 0.08)',
'outer-border': '0 0 0 1px rgba(0, 0, 0, 0.1)',
'outer-border-dark': '0 0 0 1px rgba(255, 255, 255, 0.1)',
'secondary-button-stroke': 'inset 0 0 0 1px #D9DBE3',
'secondary-button-stroke-dark': 'inset 0 0 0 1px #404756',
none: 'none',
},
extend: {
backgroundImage: {
'gradient-left-dark':
'conic-gradient(from 90deg at -10% 100%, #2B303B 0deg, #2B303B 90deg, #16181D 360deg)',
'gradient-right-dark':
'conic-gradient(from -90deg at 110% 100%, #2B303B 0deg, #16181D 90deg, #16181D 360deg)',
'gradient-left':
'conic-gradient(from 90deg at -10% 100%, #BCC1CD 0deg, #BCC1CD 90deg, #FFFFFF 360deg)',
'gradient-right':
'conic-gradient(from -90deg at 110% 100%, #FFFFFF 0deg, #EBECF0 90deg, #EBECF0 360deg)',
'meta-gradient': "url('/images/meta-gradient.png')",
'meta-gradient-dark': "url('/images/meta-gradient-dark.png')",
},
maxWidth: {
xs: '21rem',
},
outline: {
blue: ['1px auto ' + colors.link, '3px'],
},
opacity: {
8: '0.08',
},
fontFamily: {
display: [
'Optimistic Display',
'-apple-system',
...defaultTheme.fontFamily.sans,
],
text: [
'Optimistic Text',
'-apple-system',
...defaultTheme.fontFamily.sans,
],
mono: ['"Source Code Pro"', ...defaultTheme.fontFamily.mono],
},
lineHeight: {
base: '30px',
large: '38px',
xl: '1.15',
},
fontSize: {
'6xl': '52px',
'5xl': '40px',
'4xl': '32px',
'3xl': '28px',
'2xl': '24px',
xl: '20px',
lg: '17px',
base: '15px',
sm: '13px',
xs: '11px',
code: 'calc(1em - 20%)',
},
animation: {
marquee: 'marquee 40s linear infinite',
marquee2: 'marquee2 40s linear infinite',
'large-marquee': 'large-marquee 80s linear infinite',
'large-marquee2': 'large-marquee2 80s linear infinite',
},
keyframes: {
shimmer: {
'100%': {
transform: 'translateX(100%)',
},
},
rotate: {
from: {transform: 'rotate(0deg)'},
to: {transform: 'rotate(180deg)'},
},
scale: {
from: {transform: 'scale(0.8)'},
'90%': {transform: 'scale(1.05)'},
to: {transform: 'scale(1)'},
},
circle: {
from: {transform: 'scale(0)', strokeWidth: '16px'},
'50%': {transform: 'scale(0.5)', strokeWidth: '16px'},
to: {transform: 'scale(1)', strokeWidth: '0px'},
},
marquee: {
'0%': {transform: 'translateX(0%)'},
'100%': {transform: 'translateX(-400%)'},
},
marquee2: {
'0%': {transform: 'translateX(400%)'},
'100%': {transform: 'translateX(0%)'},
},
'large-marquee': {
'0%': {transform: 'translateX(0%)'},
'100%': {transform: 'translateX(-200%)'},
},
'large-marquee2': {
'0%': {transform: 'translateX(200%)'},
'100%': {transform: 'translateX(0%)'},
},
},
colors,
gridTemplateColumns: {
'only-content': 'auto',
'sidebar-content': '20rem auto',
'sidebar-content-toc': '20rem auto 20rem',
},
},
},
plugins: [],
};