Skip to content

Commit

Permalink
Moved to text size
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Jan 26, 2023
1 parent 0b7e393 commit 38abfea
Show file tree
Hide file tree
Showing 30 changed files with 49 additions and 15 deletions.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/around.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/core/assets/svgs/classic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/core/assets/svgs/dark-inner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/dark-side.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/eclipse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/expand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/core/assets/svgs/half-sun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/horizon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/inner-moon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/core/assets/svgs/lightbulb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/simple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/core/assets/svgs/within.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Around.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Around = forwardRefWithAs(function Around<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__around"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Classic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Classic = forwardRefWithAs(function Classic<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__classic"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/DarkInner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const DarkInner = forwardRefWithAs(function DarkInner<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__dark-inner"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/DarkSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const DarkSide = forwardRefWithAs(function DarkSide<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__dark-side"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Eclipse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Eclipse = forwardRefWithAs(function Eclipse<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__eclipse"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Expand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Expand = forwardRefWithAs(function Expand<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__expand"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/HalfSun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const HalfSun = forwardRefWithAs(function HalfSun<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__half-sun"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Horizon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Horizon = forwardRefWithAs(function Horizon<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__horizon"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/InnerMoon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const InnerMoon = forwardRefWithAs(function InnerMoon<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__inner-moon"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Lightbulb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Lightbulb = forwardRefWithAs(function Lightbulb<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
stroke="currentColor"
strokeLinecap="round"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Simple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Simple = forwardRefWithAs(function Simple<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__simple"
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/toggles/Within.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const Within = forwardRefWithAs(function Within<
{
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
fill="currentColor"
aria-hidden="true"
className="theme-toggle__within"
Expand Down
2 changes: 1 addition & 1 deletion website/src/app/toggle/[toggle]/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function ToggleConfiguration({
style={{ color }}
reversed={reversed}
duration={duration}
className="w-32 h-32"
className="text-[10rem]"
toggled={toggled}
onToggle={onToggle}
/>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion website/src/components/Docs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Button from '@/components/Button2'
import Button from '@/components/Button'
import { Heading } from '@/components/Heading'

const guides = [
Expand Down
4 changes: 1 addition & 3 deletions website/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ export const navigation = [
title: 'Framework Guides',
links: [
{ title: 'HTML', href: '/docs/html' },
{ title: 'React', href: '/docs/react' },
{ title: 'Svelte', href: '/docs/svelte' },
{ title: 'Vue', href: '/docs/vue' },
{ title: 'React', href: '/docs/react' }
],
},
]
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/ToggleUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function Toggle({ toggle, colorDark, colorLight }: any) {
<div className="absolute inset-0 rounded-2xl ring-1 ring-inset ring-zinc-900/7.5 group-hover:ring-zinc-900/10 dark:ring-white/10 dark:group-hover:ring-white/20" />
<div className="relative w-full px-6 pt-6 pb-2 rounded-2xl">
<Toggle
className="relative z-10 block w-24 h-24 mx-auto text-custom-dark dark:text-custom-dark"
className="relative z-10 block mx-auto text-[8rem] text-custom-dark dark:text-custom-dark"
idPrefix={id}
toggled={toggled}
onToggle={setToggle}
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as Button } from './Button2'
export { default as Button } from './Button'
export * from './Code'

1 comment on commit 38abfea

@vercel
Copy link

@vercel vercel bot commented on 38abfea Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.