Skip to content

Instantly share code, notes, and snippets.

import React, { useMemo } from 'react';
import { variant } from 'styled-system';
import styled from '@emotion/styled';
import { skipForwardProps } from '../../props';
import { kindVariants as textKindVariants } from '../../private/BaseText';
import { Box } from '../../private/Box';
import { Icon } from '../Media/Icon';
const kindVariants = {
fill: {
const Box = styled('div', {
shouldForwardProp,
})(
action,
animator,
background,
border,
color,
flexbox,
input,
import type { LayoutProps as SystemLayoutProps } from 'styled-system';
import { compose, layout as systemLayout, system } from 'styled-system';
import type { ResponsiveValue } from './types';
export type LayoutProps = SystemLayoutProps & {
hideScroll?: ResponsiveValue<boolean>;
};
const customLayout = system({
hideScroll: (value: boolean) =>
const Container = styled(VStack)`
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
`;
<Box
fontSize={4}
fontWeight='bold'
padding={3}
marginBottom={[4, 5]}
color='white'
bg='primary'
>
Hello
</Box>
import styled from '@emotion/styled'
import { typography, space, color } from 'styled-system'
const Box = styled('div')(
typography,
space,
color
)
import {
Button,
Caption,
HStack,
Link,
TextField,
VStack,
} from '@class101/oui';
const EmailLoginForm = () => (
import styled from "styled-components";
import {
Button,
ButtonColor,
ButtonSize,
Colors,
FormGroup,
Input,
TextStyles
} from "@class101/ui";
import styled from "@emotion/styled";
const Form = styled.form`
display: flex;
flex-direction: column;
`;
const FormGroup = styled.div`
display: flex;
flex-direction: column;
const baseTheme = {
space: {
0: 0,
2: 2,
4: 4,
6: 6,
8: 8,
10: 10,
12: 12,
14: 14,