index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/presets/CHANGELOG.md
# v0.12.0 (Thu Oct 28 2021) :tada: This release contains work from a new contributor! :tada: Thank you, William Pei ([@draekien](https://github.com/draekien)), for all your work! #### 🐛 Bug Fix - Merge remote-tracking branch 'upstream/develop' into fix/color-scheme-media-query-api-update [#981](https://github.com/...
8,000
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/presets/README.md
# @theme-ui/presets Theme UI includes an optional presets package that can be used as examples or as a starting point for extending your own themes. ```sh npm i @theme-ui/presets ``` ```jsx // example theme import { funk } from '@theme-ui/presets' export default { ...funk, styles: { ...funk.styles, }, } `...
8,001
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/presets/package.json
{ "name": "@theme-ui/presets", "version": "0.16.2-develop.0", "main": "dist/theme-ui-presets.cjs.js", "module": "dist/theme-ui-presets.esm.js", "types": "dist/theme-ui-presets.cjs.d.ts", "source": "src/index.ts", "author": "Brent Jackson", "license": "MIT", "scripts": {}, "dependencies": { "@the...
8,002
0
petrpan-code/system-ui/theme-ui/packages/presets
petrpan-code/system-ui/theme-ui/packages/presets/src/index.ts
export { default as base } from '@theme-ui/preset-base' export { default as dark } from '@theme-ui/preset-dark' export { default as deep } from '@theme-ui/preset-deep' export { default as funk } from '@theme-ui/preset-funk' export { default as future } from '@theme-ui/preset-future' export { default as roboto } from '@...
8,003
0
petrpan-code/system-ui/theme-ui/packages/presets
petrpan-code/system-ui/theme-ui/packages/presets/test/index.tsx
import { Theme } from '@theme-ui/css' import { base, bootstrap, bulma, dark, deep, funk, future, polaris, roboto, sketchy, swiss, system, tailwind, tosh, } from '../dist/theme-ui-presets.cjs' describe('presets', () => { it('can be passed to ThemeProvider', () => { const _presets: The...
8,004
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/prism/CHANGELOG.md
# v0.14.6 (Wed Jun 15 2022) #### 🐛 Bug Fix - fix(prism): fix peer dependency version ([@hasparus](https://github.com/hasparus)) #### Authors: 1 - Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/hasparus)) --- # v0.12.0 (Thu Oct 28 2021) :tada: This release contains work from a new contributor! :tada: ...
8,005
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/prism/README.md
# @theme-ui/prism A syntax highlighting component based on [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) that works seamlessly with Theme UI. ## Installation ``` npm i @theme-ui/prism ``` ## Usage The syntax highlighting component needs to be passed to Theme UI context via the `The...
8,006
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/prism/build-presets.js
const fs = require('fs') const path = require('path') const postcss = require('postcss') const postcssJS = require('postcss-js') const { paramCase } = require('param-case') const dir = { prismjs: path.join(path.dirname(require.resolve('prismjs')), 'themes'), } const RE = { ignore: /^(pre|code|@media|:not)/, } //...
8,007
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/prism/package.json
{ "name": "@theme-ui/prism", "version": "0.16.2-develop.0", "main": "dist/theme-ui-prism.cjs.js", "module": "dist/theme-ui-prism.esm.js", "types": "dist/theme-ui-prism.cjs.d.ts", "source": "src/index.tsx", "author": "John Otander", "license": "MIT", "repository": "system-ui/theme-ui", "publishConfig...
8,008
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/dracula.json
{ "color": "#F8F8F2", "backgroundColor": "#282A36", ".prolog,.constant,.builtin": { "color": "rgb(189, 147, 249)" }, ".inserted,.function": { "color": "rgb(80, 250, 123)" }, ".deleted": { "color": "rgb(255, 85, 85)" }, ".changed": { "color": "rgb(255, 184, 108)" }, ".punctuation,.s...
8,009
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/duotone-dark.json
{ "backgroundColor": "#2a2734", "color": "#9a86fd", ".comment,.prolog,.doctype,.cdata,.punctuation": { "color": "#6c6783" }, ".namespace": { "opacity": 0.7 }, ".tag,.operator,.number": { "color": "#e09142" }, ".property,.function": { "color": "#9a86fd" }, ".tag-id,.selector,.atrule...
8,010
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/duotone-light.json
{ "backgroundColor": "#faf8f5", "color": "#728fcb", ".comment,.prolog,.doctype,.cdata,.punctuation": { "color": "#b6ad9a" }, ".namespace": { "opacity": 0.7 }, ".tag,.operator,.number": { "color": "#063289" }, ".property,.function": { "color": "#b29762" }, ".tag-id,.selector,.atrule...
8,011
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/github.json
{ "color": "#393A34", "backgroundColor": "#f6f8fa", ".comment,.prolog,.doctype,.cdata": { "color": "#999988", "fontStyle": "italic" }, ".namespace": { "opacity": 0.7 }, ".string,.attr-value": { "color": "#e3116c" }, ".punctuation,.operator": { "color": "#393A34" }, ".entity,.ur...
8,012
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/night-owl-light.json
{ "color": "#403f53", "backgroundColor": "#FBFBFB", ".changed": { "color": "rgb(162, 191, 252)", "fontStyle": "italic" }, ".deleted": { "color": "rgba(239, 83, 80, 0.56)", "fontStyle": "italic" }, ".inserted,.attr-name": { "color": "rgb(72, 118, 214)", "fontStyle": "italic" }, ...
8,013
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/night-owl.json
{ "color": "#d6deeb", "backgroundColor": "#011627", ".changed": { "color": "rgb(162, 191, 252)", "fontStyle": "italic" }, ".deleted": { "color": "rgba(239, 83, 80, 0.56)", "fontStyle": "italic" }, ".inserted,.attr-name": { "color": "rgb(173, 219, 103)", "fontStyle": "italic" }, ...
8,014
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/oceanic-next.json
{ "backgroundColor": "#282c34", "color": "#ffffff", ".attr-name": { "color": "#c5a5c5" }, ".attr-value": { "color": "#8dc891" }, ".comment,.block-comment,.prolog,.doctype,.cdata,.shebang": { "color": "#999999" }, ".property,.number,.function-name,.constant,.symbol,.deleted": { "color":...
8,015
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-coy.json
{ "color": "black", "backgroundColor": "#fdfdfd", ".comment,.block-comment,.prolog,.doctype,.cdata": { "color": "#7D8B99" }, ".punctuation": { "color": "#5F6364" }, ".property,.tag,.boolean,.number,.function-name,.constant,.symbol,.deleted": { "color": "#c92c2c" }, ".selector,.attr-name,.s...
8,016
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-dark.json
{ "color": "white", "backgroundColor": "hsl(30, 20%, 25%)", ".comment,.prolog,.doctype,.cdata": { "color": "hsl(30, 20%, 50%)" }, ".punctuation": { "opacity": 0.7 }, ".namespace": { "opacity": 0.7 }, ".property,.tag,.boolean,.number,.constant,.symbol": { "color": "hsl(350, 40%, 70%)" ...
8,017
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-funky.json
{ "color": "white", "backgroundColor": "black", ".comment,.prolog,.doctype,.cdata": { "color": "#aaa" }, ".punctuation": { "color": "#999" }, ".namespace": { "opacity": 0.7 }, ".property,.tag,.boolean,.number,.constant,.symbol": { "color": "#0cf" }, ".selector,.attr-name,.string,.c...
8,018
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-okaidia.json
{ "color": "#f8f8f2", "backgroundColor": "#272822", ".comment,.prolog,.doctype,.cdata": { "color": "#8292a2" }, ".punctuation": { "color": "#f8f8f2" }, ".namespace": { "opacity": 0.7 }, ".property,.tag,.constant,.symbol,.deleted": { "color": "#f92672" }, ".boolean,.number": { "...
8,019
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-solarizedlight.json
{ "color": "#657b83", "backgroundColor": "#073642", ".comment,.prolog,.doctype,.cdata": { "color": "#93a1a1" }, ".punctuation": { "color": "#586e75" }, ".namespace": { "opacity": 0.7 }, ".property,.tag,.boolean,.number,.constant,.symbol,.deleted": { "color": "#268bd2" }, ".selector...
8,020
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-tomorrow.json
{ "color": "#ccc", "backgroundColor": "#2d2d2d", ".comment,.block-comment,.prolog,.doctype,.cdata": { "color": "#999" }, ".punctuation": { "color": "#ccc" }, ".tag,.attr-name,.namespace,.deleted": { "color": "#e2777a" }, ".function-name": { "color": "#6196cc" }, ".boolean,.number,....
8,021
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism-twilight.json
{ "color": "white", "backgroundColor": "hsl(0, 0%, 8%)", ".comment,.prolog,.doctype,.cdata": { "color": "hsl(0, 0%, 47%)" }, ".punctuation": { "opacity": 0.7 }, ".namespace": { "opacity": 0.7 }, ".tag,.boolean,.number,.deleted": { "color": "hsl(14, 58%, 55%)" }, ".keyword,.property...
8,022
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/prism.json
{ "color": "black", "backgroundColor": "#f5f2f0", ".comment,.prolog,.doctype,.cdata": { "color": "slategray" }, ".punctuation": { "color": "#999" }, ".namespace": { "opacity": 0.7 }, ".property,.tag,.boolean,.number,.constant,.symbol,.deleted": { "color": "#905" }, ".selector,.attr...
8,023
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/shades-of-purple.json
{ "color": "#9EFEFF", "backgroundColor": "#2D2A55", ".changed": { "color": "rgb(255, 238, 128)" }, ".deleted": { "color": "rgba(239, 83, 80, 0.56)" }, ".inserted": { "color": "rgb(173, 219, 103)" }, ".comment": { "color": "rgb(179, 98, 255)", "fontStyle": "italic" }, ".punctuat...
8,024
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/theme-ui.js
// @ts-check const syntaxStyles = { '.comment': { fontStyle: 'italic', }, '.property, .tag, .boolean, .number, .constant, .symbol, .function, .class-name, .regex, .important, .variable': { color: 'accent' }, '.atrule, .attr-value, .keyword': { color: 'primary', }, '.selector, .attr-name, .strin...
8,025
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/ultramin.json
{ "color": "#282a2e", "backgroundColor": "#ffffff", ".comment": { "color": "rgb(197, 200, 198)" }, ".string,.number,.builtin,.variable": { "color": "rgb(150, 152, 150)" }, ".class-name,.function,.tag,.attr-name": { "color": "rgb(40, 42, 46)" }, ".highlight": { "background": "hsla(0, 90...
8,026
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/presets/vs-dark.json
{ "color": "#9CDCFE", "backgroundColor": "#1E1E1E", ".prolog": { "color": "rgb(0, 0, 128)" }, ".comment": { "color": "rgb(106, 153, 85)" }, ".builtin,.changed,.keyword": { "color": "rgb(86, 156, 214)" }, ".number,.inserted": { "color": "rgb(181, 206, 168)" }, ".constant": { "co...
8,027
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/src/index.tsx
import Highlight, { defaultProps, Language } from 'prism-react-renderer' import { Themed } from '@theme-ui/mdx' const aliases: Record<string, Language | undefined> = { js: 'javascript', sh: 'bash', } const isInRange = (start: number, end: number, num: number) => { if (num >= start && num <= end) { return tr...
8,028
0
petrpan-code/system-ui/theme-ui/packages/prism
petrpan-code/system-ui/theme-ui/packages/prism/test/index.tsx
/** * @jest-environment jsdom */ import React from 'react' import renderer from 'react-test-renderer' import Prism from '../src' const CODE = ` console.log('hello, world!') ` const render = (el: typeof renderer.create.arguments[0]) => renderer.create(el).toJSON() test('renders a code block', () => { const r...
8,029
0
petrpan-code/system-ui/theme-ui/packages/prism/test
petrpan-code/system-ui/theme-ui/packages/prism/test/__snapshots__/index.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`highlight start and end 1`] = ` <pre className="language-js prism-code language-javascript emotion-0" style={{}} > <div className="token-line highlight" > <span className="token plain" > </span> <span className="token c...
8,030
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/style-guide/CHANGELOG.md
# v0.12.0 (Thu Oct 28 2021) :tada: This release contains work from a new contributor! :tada: Thank you, William Pei ([@draekien](https://github.com/draekien)), for all your work! #### 🚀 Enhancement #### 🐛 Bug Fix - Merge remote-tracking branch 'upstream/develop' into fix/color-scheme-media-query-api-update [#98...
8,031
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/style-guide/README.md
# @theme-ui/style-guide Component for rendering Theme UI styles in a style guide format. ```sh npm i @theme-ui/style-guide ``` ```jsx import { Themed } from '@theme-ui/mdx' import { TypeScale, TypeStyle, ColorPalette } from '@theme-ui/style-guide' export default (props) => ( <> <Themed.h1>Style Guide</Themed....
8,032
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/style-guide/package.json
{ "name": "@theme-ui/style-guide", "version": "0.16.2-develop.0", "main": "dist/theme-ui-style-guide.cjs.js", "module": "dist/theme-ui-style-guide.esm.js", "types": "dist/theme-ui-style-guide.cjs.d.ts", "source": "src/index.ts", "author": "Brent Jackson", "license": "MIT", "repository": "system-ui/the...
8,033
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/Card.tsx
import { ComponentProps } from 'react' export interface CardProps extends ComponentProps<'div'> {} export const Card = (props: CardProps) => ( <div {...props} sx={{ variant: 'styles.Card', }} /> ) export default Card
8,034
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/ColorPalette.tsx
import { useTheme } from './context' import ColorSwatch, { ColorSwatchProps } from './ColorSwatch' const join = (...args: unknown[]) => args.filter(Boolean).join('.') type Colors = Record<string, string | { [key: string]: Colors }> export interface ColorRowProps extends Omit<ColorSwatchProps, 'color'> { colors: Col...
8,035
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/ColorSwatch.tsx
import { getColor } from '@theme-ui/color' import { ComponentProps } from 'react' import { ResponsiveStyleValue } from 'theme-ui' import { toHex } from './color' import { useTheme } from './context' export interface ColorSwatchProps extends ComponentProps<'div'> { color: string name?: React.ReactNode size?: Resp...
8,036
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/FontFamily.ts
import { get } from 'theme-ui' import { useTheme } from './context' export const FontFamily = ({ name }: { name: string }) => { const { fonts } = useTheme()! return get(fonts!, name) }
8,037
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/HeadingStyle.tsx
import TypeStyle, { TypeStyleProps } from './TypeStyle' export const HeadingStyle = (props: TypeStyleProps) => ( <TypeStyle fontFamily="heading" fontWeight="heading" lineHeight="heading" {...props} /> ) export default HeadingStyle
8,038
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/ThemeCard.tsx
import Card, { CardProps } from './Card' import ColorPalette from './ColorPalette' import TypeStyle from './TypeStyle' export interface ThemeCardProps extends CardProps {} export const ThemeCard: React.FC<ThemeCardProps> = (props) => { return ( <Card {...props} sx={{ color: 'text', bg...
8,039
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/TypeScale.tsx
import { useTheme } from './context' import TypeStyle from './TypeStyle' const getValue = (fontSize: string | number | (string & {})) => typeof fontSize === 'number' ? `${fontSize}px` : fontSize export interface TypeScaleProps { reverse?: boolean } export const TypeScale = ({ reverse = true, ...props }) => { co...
8,040
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/TypeStyle.tsx
import { ComponentProps } from 'react' import Card from './Card' export interface TypeStyleProps extends ComponentProps<typeof Card> { fontSize?: number | string fontFamily?: string lineHeight?: string fontWeight?: string truncate?: boolean } export const TypeStyle = ({ fontSize = 5, fontFamily = 'body',...
8,041
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/color.ts
import Color from 'color' type ColorArgument = ConstructorParameters<typeof Color>[0] export const toHex = (raw: ColorArgument) => { try { return Color(raw).hex() } catch (e) { return } } export const toRGB = (raw: ColorArgument) => { try { return Color(raw) .rgb() .string() } catch ...
8,042
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/context.ts
import { useThemeUI } from 'theme-ui' export const useTheme = () => useThemeUI().theme
8,043
0
petrpan-code/system-ui/theme-ui/packages/style-guide
petrpan-code/system-ui/theme-ui/packages/style-guide/src/index.ts
export { useTheme } from './context' export { TypeStyle } from './TypeStyle' export { TypeScale } from './TypeScale' export { HeadingStyle } from './HeadingStyle' export { FontFamily } from './FontFamily' export { ColorSwatch } from './ColorSwatch' export { ColorPalette } from './ColorPalette' // export { SpaceScale } ...
8,044
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tachyons/.npmignore
babel.config.js test coverage
8,045
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tachyons/CHANGELOG.md
# v0.10.0 (Sat Jun 19 2021) #### 🏠 Internal - Docs: update JSX pragma guide with automatic runtime section [#1718](https://github.com/system-ui/theme-ui/pull/1718) ([@flo-sch](https://github.com/flo-sch) [@hasparus](https://github.com/hasparus)) #### Authors: 2 - Florent SCHILDKNECHT ([@flo-sch](https://github.com...
8,046
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tachyons/README.md
⚠ _This package is no longer maintained as its dependencies (postcss-rtl) are not maintained. Feel free to copy the code to your project — it's just 44 LoC._ ⚠ --- # @theme-ui/tachyons Generate static CSS for use outside of React with Theme UI and Tachyons. ## Why? Though Theme UI comes with its own implementation...
8,047
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tachyons/package.json
{ "name": "@theme-ui/tachyons", "description": "⚠ DEPRECATED: Generate static CSS for use outside of React with Theme UI and Tachyons", "version": "0.16.2-develop.0", "private": true, "main": "dist/theme-ui-tachyons.cjs.js", "module": "dist/theme-ui-tachyons.esm.js", "source": "src/index.ts", "author": ...
8,048
0
petrpan-code/system-ui/theme-ui/packages/tachyons
petrpan-code/system-ui/theme-ui/packages/tachyons/src/index.ts
/* istanbul ignore file */ import { Theme } from '@theme-ui/css' const KEY_MAPPING: { readonly [Key: string]: string | string[] } = { space: 'spacing', fonts: 'fontFamily', borderStyles: 'borderStyle', radii: 'borderRadius', shadows: 'boxShadow', fontSizes: 'typeScale', fontWeights: 'fontWeight', li...
8,049
0
petrpan-code/system-ui/theme-ui/packages/tachyons/types
petrpan-code/system-ui/theme-ui/packages/tachyons/types/tachyons-generator/index.d.ts
declare module 'tachyons-generator' { export default function(config: { [TachyonsKey: string]: unknown }): { generate(): Promise<{ css: string }> } }
8,050
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tailwind/.npmignore
babel.config.js test coverage
8,051
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tailwind/CHANGELOG.md
# v0.12.0 (Thu Oct 28 2021) :tada: This release contains work from a new contributor! :tada: Thank you, William Pei ([@draekien](https://github.com/draekien)), for all your work! #### 🐛 Bug Fix - Merge remote-tracking branch 'upstream/develop' into fix/color-scheme-media-query-api-update [#981](https://github.com/...
8,052
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tailwind/README.md
# @theme-ui/tailwind Generate static CSS for use outside of React with Theme UI and Tailwind.css. ## Why? Though Theme UI comes with its own implementation, project constraints might require pure utility CSS output. This library allows you to leverage a Theme UI theme that is used elsewhere and transforms it to the ...
8,053
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/tailwind/package.json
{ "name": "@theme-ui/tailwind", "description": "Generate static CSS for use outside of React with Theme UI and Tailwind.css", "version": "0.16.2-develop.0", "main": "dist/theme-ui-tailwind.cjs.js", "module": "dist/theme-ui-tailwind.esm.js", "source": "src/index.ts", "author": "John Otander <johnotander@gm...
8,054
0
petrpan-code/system-ui/theme-ui/packages/tailwind
petrpan-code/system-ui/theme-ui/packages/tailwind/src/index.ts
import { Theme } from '@theme-ui/css' const KEY_MAPPING: { readonly [Key: string]: string | string[] } = { space: 'spacing', radii: 'borderRadius', fonts: 'fontFamily', breakpoints: 'screens', borderStyles: 'borderStyle', shadows: 'boxShadow', fontSizes: 'fontSize', fontWeights: 'fontWeight', lineH...
8,055
0
petrpan-code/system-ui/theme-ui/packages/tailwind
petrpan-code/system-ui/theme-ui/packages/tailwind/test/fixture.css
@tailwind base; @tailwind components; @tailwind utilities;
8,056
0
petrpan-code/system-ui/theme-ui/packages/tailwind
petrpan-code/system-ui/theme-ui/packages/tailwind/test/index.html
<!-- Adapted from https://tailwindui.com/components/marketing/sections/heroes --> <div class="relative bg-white overflow-hidden"> <div class="max-w-7xl mx-auto"> <div class="relative z-10 pb-8 bg-white 0:pb-16 1:pb-20 2:max-w-2xl 2:w-full 2:pb-28 3:pb-32" > <div> <div class="relative pt-6 ...
8,057
0
petrpan-code/system-ui/theme-ui/packages/tailwind
petrpan-code/system-ui/theme-ui/packages/tailwind/test/test.ts
/** * @jest-environment jsdom */ import 'babel-polyfill' import fs from 'fs' import path from 'path' import execa from 'execa' import toTailwind from '../src' const theme = { breakpoints: ['30em', '45em', '55em', '75em'], colors: { text: '#000', background: '#fff', primary: '#07c', secondary: ...
8,058
0
petrpan-code/system-ui/theme-ui/packages/tailwind/test
petrpan-code/system-ui/theme-ui/packages/tailwind/test/__snapshots__/test.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`does not error when using the Tailwind CLI 1`] = ` "/* ! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com */ /* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 2. Allow adding a border to an eleme...
8,059
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/test-utils/README.md
# @theme-ui/css Theme UI CSS lets you write style objects with responsive, theme-aware ergonomic shortcuts. This package powers the `sx` prop in Theme UI. ```sh npm i @theme-ui/css ``` https://theme-ui.com
8,060
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/test-utils/package.json
{ "name": "@theme-ui/test-utils", "version": "0.16.2-develop.0", "private": true, "license": "MIT", "repository": "system-ui/theme-ui", "source": "src/index.ts", "main": "dist/theme-ui-test-utils.cjs.js", "module": "dist/theme-ui-test-utils.esm.js", "types": "dist/theme-ui-test-utils.cjs.d.ts", "sid...
8,061
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/test-utils/tsconfig.json
{ "extends": "../../tsconfig.json", "compilerOptions": { "target": "ES2018" }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"] }
8,062
0
petrpan-code/system-ui/theme-ui/packages/test-utils
petrpan-code/system-ui/theme-ui/packages/test-utils/src/index.tsx
/** @jsxImportSource react */ import * as React from 'react' import { render } from '@testing-library/react' import renderer from 'react-test-renderer' import * as tsSnippet from 'ts-snippet' import { Theme, ThemeUIProvider } from 'theme-ui' export * from '@testing-library/react' export type { Assert, AssertFalse...
8,063
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-provider/CHANGELOG.md
# v0.13.0 (Mon Dec 27 2021) ### Release Notes #### Move Emotion and MDX packages to peerDeps ([#1867](https://github.com/system-ui/theme-ui/pull/1867)) **BREAKING CHANGE:** `@emotion/react` and `@mdx-js/react` were moved to peerDependencies of `theme-ui`, `@theme-ui/mdx` and `@theme-ui/sidenav` and must be installe...
8,064
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-provider/README.md
**Note:** This package is a hack to fix export order produced by microbundle. Use the main `theme-ui` package or `@theme-ui/core` instead. https://theme-ui.com
8,065
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-provider/package.json
{ "name": "@theme-ui/theme-provider", "version": "0.16.2-develop.0", "repository": "system-ui/theme-ui", "main": "dist/theme-ui-theme-provider.cjs.js", "module": "dist/theme-ui-theme-provider.esm.js", "source": "src/index.ts", "author": "Brent Jackson", "license": "MIT", "sideEffects": false, "publi...
8,066
0
petrpan-code/system-ui/theme-ui/packages/theme-provider
petrpan-code/system-ui/theme-ui/packages/theme-provider/src/index.tsx
import React from 'react' import { jsx, useThemeUI, ThemeProvider as CoreProvider, ThemeProviderProps as CoreThemeProviderProps, __themeUiDefaultContextValue, } from '@theme-ui/core' import { css, Theme } from '@theme-ui/css' import { ColorModeProvider } from '@theme-ui/color-modes' import { Global } from '@e...
8,067
0
petrpan-code/system-ui/theme-ui/packages/theme-provider
petrpan-code/system-ui/theme-ui/packages/theme-provider/test/index.tsx
/** * @jest-environment jsdom */ import { useThemeUI, __ThemeUIContext } from '@theme-ui/core' import { render, cleanup, fireEvent } from '@testing-library/react' import { matchers } from '@emotion/jest' import { renderJSON } from '@theme-ui/test-utils' import { ThemeUIProvider } from '../src' expect.extend(matche...
8,068
0
petrpan-code/system-ui/theme-ui/packages/theme-provider/test
petrpan-code/system-ui/theme-ui/packages/theme-provider/test/__snapshots__/index.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders 1`] = ` <h1> Hello </h1> `;
8,069
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-ui/.npmignore
babel.config.js *.test.js coverage __snapshots__ test
8,070
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-ui/CHANGELOG.md
# v0.14.3 (Thu Apr 21 2022) #### 🐛 Bug Fix - Support full media queries in `theme.breakpoints` in @theme-ui/match-media hooks [#2199](https://github.com/system-ui/theme-ui/pull/2199) ([@hasparus](https://github.com/hasparus)) #### Authors: 1 - Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/hasparus)) --...
8,071
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-ui/README.md
<p align="center"> <img src="/packages/docs/static/logo-dark.png#gh-dark-mode-only" width="96" height="96" alt="Theme UI logo" /> <img src="/packages/docs/static/logo.png#gh-light-mode-only" width="96" height="96" alt="Theme UI logo" /> </p> <h1 align="center">Theme UI</h1> <p ...
8,072
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/theme-ui/package.json
{ "name": "theme-ui", "version": "0.16.2-develop.0", "description": "The Design Graph Framework", "source": "src/index.ts", "main": "dist/theme-ui.cjs.js", "module": "dist/theme-ui.esm.js", "types": "dist/theme-ui.cjs.d.ts", "sideEffects": false, "author": "Brent Jackson <jxnblk@gmail.com>", "licens...
8,073
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/jsx-dev-runtime/package.json
{ "main": "dist/theme-ui-jsx-dev-runtime.cjs.js", "module": "dist/theme-ui-jsx-dev-runtime.esm.js", "types": "dist/theme-ui-jsx-dev-runtime.cjs.d.ts" }
8,074
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/jsx-runtime/package.json
{ "main": "dist/theme-ui-jsx-runtime.cjs.js", "module": "dist/theme-ui-jsx-runtime.esm.js", "types": "dist/theme-ui-jsx-runtime.cjs.d.ts" }
8,075
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/src/index.ts
import { jsx as coreJsx } from '@theme-ui/core' import type { ThemeUIJSX, ThemeUIStyleObject } from '@theme-ui/core' export { __ThemeUIContext, merge, useThemeUI, createElement, } from '@theme-ui/core' export type { ThemeUIContextValue, SxProp, ColorMode, ColorModesScale, CSSObject, CSSProperties, ...
8,076
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/src/jsx-dev-runtime.ts
export { Fragment } from 'react' export { jsxDEV } from '@theme-ui/core/jsx-dev-runtime' export type { JSX } from '@theme-ui/core/jsx-dev-runtime'
8,077
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/src/jsx-runtime.ts
export { Fragment } from 'react' export { jsx, jsxs } from '@theme-ui/core/jsx-runtime' export type { JSX } from '@theme-ui/core/jsx-runtime'
8,078
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/test/color-modes.tsx
/** * @jest-environment jsdom */ import renderer from 'react-test-renderer' import { render, fireEvent, cleanup, act } from '@theme-ui/test-utils' import { matchers } from '@emotion/jest' import mockConsole, { RestoreConsole } from 'jest-mock-console' import packageInfo from '@emotion/react/package.json' import { ...
8,079
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/test/index.tsx
/** * @jest-environment jsdom */ import React from 'react' import { matchers } from '@emotion/jest' import mockConsole from 'jest-mock-console' import { fireEvent, render, renderJSON } from '@theme-ui/test-utils' import { ThemeProvider as DeprecatedThemeProvider, ThemeUIProvider, jsx, BaseStyles, Theme, ...
8,080
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/test/jsx-dev-runtime.ts
/** * @jest-environment jsdom */ import { screen, render } from '@testing-library/react' import { matchers } from '@emotion/jest' import { jsxDEV } from '../src/jsx-dev-runtime' expect.extend(matchers) describe('automatic JSX dev runtime in theme-ui package', () => { test('jsxDEV', () => { const self = {} ...
8,081
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/test/jsx-runtime.ts
/** @jest-environment jsdom */ import { screen, render } from '@testing-library/react' import { matchers } from '@emotion/jest' import { jsx, jsxs } from '../src/jsx-runtime' expect.extend(matchers) describe('automatic JSX runtime in theme-ui package', () => { test('jsx and jsxs', () => { render( jsxs(...
8,082
0
petrpan-code/system-ui/theme-ui/packages/theme-ui
petrpan-code/system-ui/theme-ui/packages/theme-ui/test/node.tsx
/** @jest-environment node */ import { renderToString } from 'react-dom/server' import { ThemeUIProvider, useColorMode } from '../src' test('does not initialize mode based on localStorage', () => { let mode const Button = () => { const [colorMode] = useColorMode() mode = colorMode return <button childr...
8,083
0
petrpan-code/system-ui/theme-ui/packages/theme-ui/test
petrpan-code/system-ui/theme-ui/packages/theme-ui/test/__snapshots__/index.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`BaseStyles renders 1`] = ` .emotion-0 { font-family: system-ui,sans-serif; line-height: 1.5; font-weight: 400; } <div className="emotion-0" /> `; exports[`BaseStyles renders sx prop styles 1`] = ` .emotion-0 { font-family: body; line-height: body; fon...
8,084
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/typography/.npmignore
babel.config.js test coverage
8,085
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/typography/CHANGELOG.md
# v0.12.0 (Thu Oct 28 2021) :tada: This release contains work from a new contributor! :tada: Thank you, William Pei ([@draekien](https://github.com/draekien)), for all your work! #### 🚀 Enhancement #### 🐛 Bug Fix - Merge remote-tracking branch 'upstream/develop' into fix/color-scheme-media-query-api-update [#98...
8,086
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/typography/README.md
# @theme-ui/typography Utilities for integrating Typography.js themes with Theme UI ```js import { ThemeUIProvider } from 'theme-ui' import { toTheme } from '@theme-ui/typography' import wordpress2016 from 'typography-theme-wordpress-2016' const theme = toTheme(wordpress2016) export default (props) => ( <ThemeUIP...
8,087
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/typography/declarations.d.ts
// needed for tests declare module 'typography-theme-*'
8,088
0
petrpan-code/system-ui/theme-ui/packages
petrpan-code/system-ui/theme-ui/packages/typography/package.json
{ "name": "@theme-ui/typography", "version": "0.16.2-develop.0", "main": "dist/theme-ui-typography.cjs.js", "module": "dist/theme-ui-typography.esm.js", "source": "src/index.ts", "author": "Brent Jackson <jxnblk@gmail.com>", "license": "MIT", "scripts": {}, "dependencies": { "@theme-ui/css": "work...
8,089
0
petrpan-code/system-ui/theme-ui/packages/typography
petrpan-code/system-ui/theme-ui/packages/typography/src/index.ts
export { toTheme } from './to-theme' export { styles } from './styles' export type { CustomTypographyOptions, ThemeTypographyRhythm as CustomVerticalRhythm, } from './to-theme'
8,090
0
petrpan-code/system-ui/theme-ui/packages/typography
petrpan-code/system-ui/theme-ui/packages/typography/src/styles.ts
import { ThemeStyles } from '@theme-ui/css' // theme.styles object for use with typography.js-generated theme object // similar to typography.js style output, with these differences // - only includes styles for markdown elements // - does not include color styles // - does not include responsive styles const heading...
8,091
0
petrpan-code/system-ui/theme-ui/packages/typography
petrpan-code/system-ui/theme-ui/packages/typography/src/to-theme.ts
// custom implementation of typography.js for use in theme-ui import verticalRhythm from 'compass-vertical-rhythm' import { Theme, Scale, ThemeStyles } from '@theme-ui/css' import ms from 'modularscale' import CSS from 'csstype' import { TypographyOptions } from 'typography' import { Merge } from 'type-fest' import st...
8,092
0
petrpan-code/system-ui/theme-ui/packages/typography
petrpan-code/system-ui/theme-ui/packages/typography/test/styles.ts
import { styles } from '../src' test('snapshot', () => { expect(styles).toMatchInlineSnapshot(` { "b": { "fontWeight": "bold", }, "blockquote": { "margin": 0, "marginBottom": 3, "mx": 3, "padding": 0, }, "code": { "fontSize": "85%", ...
8,093
0
petrpan-code/system-ui/theme-ui/packages/typography
petrpan-code/system-ui/theme-ui/packages/typography/test/to-theme.ts
import { toUnitless } from '../src/to-theme' import { toTheme } from '../src' import themes from './fixtures/themes' import Typography, { TypographyOptions } from 'typography' const typo = new Typography(({ ...themes.wp2016, baseFontSize: toUnitless(themes.wp2016.baseFontSize as string), rhythmUnit: 'px', } as ...
8,094
0
petrpan-code/system-ui/theme-ui/packages/typography/test
petrpan-code/system-ui/theme-ui/packages/typography/test/__snapshots__/to-theme.ts.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`includes default options 1`] = ` { "fontSizes": [ 12.99603834169977, 13.928809012737986, 16, 21.112126572366307, 24.251465064166368, 32, ], "fontWeights": { "body": "normal", "bold": "bold", "heading": "bold", }, "fonts":...
8,095
0
petrpan-code/system-ui/theme-ui/packages/typography/test
petrpan-code/system-ui/theme-ui/packages/typography/test/fixtures/themes.ts
import { TypographyOptions } from 'typography' import alton from 'typography-theme-alton' import bootstrap from 'typography-theme-bootstrap' import deYoung from 'typography-theme-de-young' import doelger from 'typography-theme-doelger' import elkGlen from 'typography-theme-elk-glen' import funston from 'typography-the...
8,096
0
petrpan-code/system-ui/theme-ui
petrpan-code/system-ui/theme-ui/scripts/all-contributors-check.js
#!/bin/env node //@ts-check const { exec } = require('egzek') const bots = ['dependabot-preview[bot]', 'dependabot[bot]'] const [output] = exec('npx all-contributors check', { stdio: 'pipe' }) let [header, missingContributors] = output.split('\n') missingContributors = missingContributors .split(', ') .map((x)...
8,097
0
petrpan-code/system-ui/theme-ui
petrpan-code/system-ui/theme-ui/scripts/publish-to-npm.mjs
// @ts-check import { exec } from 'egzek' import { readFile, writeFile } from 'fs/promises' import semver from 'semver' import packageJson from '../package.json' assert { type: 'json' } { const DRY_RUN = false const PRODUCTION_BRANCH = 'stable' const PRERELEASE_BRANCH = 'develop' const PRERELEASE_NPM_TAG = 'de...
8,098
0
petrpan-code/system-ui/theme-ui
petrpan-code/system-ui/theme-ui/scripts/should-skip-deploy.sh
#!/bin/bash # Does the branch name start with "dependabot/" if [[ "$VERCEL_GIT_COMMIT_REF" = dependabot/* ]] ; then echo "should-skip-deploy >> Skipping deploy!" exit 0; else echo "should-ski-deploy >> Proceeding with deploy." exit 1; fi
8,099