Add 's' method to access theme props (#5163)

This commit is contained in:
Tom Moor
2023-04-07 22:43:34 -04:00
committed by GitHub
parent c202198d61
commit 422bdc32d9
116 changed files with 482 additions and 388 deletions

View File

@@ -1,6 +1,6 @@
import * as React from "react";
import styled from "styled-components";
import { depths } from "@shared/styles";
import { depths, s } from "@shared/styles";
import { id } from "~/components/SkipNavContent";
export default function SkipNavLink() {
@@ -23,9 +23,9 @@ const Anchor = styled.a`
position: fixed;
top: 12px;
left: 12px;
background: ${(props) => props.theme.background};
color: ${(props) => props.theme.text};
outline-color: ${(props) => props.theme.accent};
background: ${s("background")};
color: ${s("text")};
outline-color: ${s("accent")};
z-index: ${depths.popover};
width: auto;
height: auto;