Add 's' method to access theme props (#5163)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import styled from "styled-components";
|
||||
import { s } from "@shared/styles";
|
||||
|
||||
const Input = styled.input`
|
||||
font-size: 15px;
|
||||
background: ${(props) => props.theme.toolbarInput};
|
||||
color: ${(props) => props.theme.toolbarItem};
|
||||
background: ${s("toolbarInput")};
|
||||
color: ${s("toolbarItem")};
|
||||
border-radius: 2px;
|
||||
padding: 3px 8px;
|
||||
border: 0;
|
||||
|
||||
Reference in New Issue
Block a user