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/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/App/style.css | @import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,300,400,600';
/*@import '~tachyons';*/
body {
font-family: 'Source Sans Pro', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
text-decoration: none;
}
:root {
--color-accent: #22A699;
... | 7,500 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/BrowserRow/BrowserRow.module.styl | .tableRow
input
border none
border-right 1px solid #e5e5e5
border-bottom 1px solid #e5e5e5
&:first-child
border-top 1px solid #e5e5e5
| 7,501 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/BrowserRow/BrowserRow.tsx | import * as React from 'react'
import * as Relay from 'react-relay'
import { Icon } from 'graphcool-styles'
import DeletePokemonMutation from '../../mutations/DeletePokemonMutation'
import UpdatePokemonMutation from '../../mutations/UpdatePokemonMutation'
import * as ReactGA from 'react-ga'
import { events } from '../.... | 7,502 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/BrowserView/BrowserView.module.styl | .newRow
input
border none
border-right 1px dashed #e5e5e5
border-bottom 1px dashed #e5e5e5
&:first-child
border-left 1px dashed #e5e5e5
&::-webkit-input-placeholder
color rgba(0,0,0,0.5) !important
&:-moz-placeholder /* Firefox 18- */
color rgba(0,0,0,0.5) !important
... | 7,503 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/BrowserView/BrowserView.tsx | import * as React from 'react'
import * as Relay from 'react-relay'
import { Icon } from 'graphcool-styles'
import AddPokemonMutation from '../../mutations/AddPokemonMutation'
import BrowserRow from '../BrowserRow/BrowserRow'
import * as ReactGA from 'react-ga'
import { events } from '../../utils/events'
const styles:... | 7,504 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/ContentEndpoint/ContentEndpoint.module.styl | .getEndpoint
margin 50px auto 15px
border-radius 3px
color #fff !important
background var(--color-accent)
display inline-block
font-size 20px
// font-weight 300
&:hover
text-decoration none !important
.showEndpoint
margin 50px auto
border-radius 3px
color #191919
font-size 20px
font-weig... | 7,505 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/ContentEndpoint/ContentEndpoint.tsx | import * as React from 'react'
import * as CopyToClipboard from 'react-copy-to-clipboard'
import Loading from '../Loading/Loading'
import { StoredState } from '../../utils/statestore'
import Markdown from '../Markdown/Markdown'
import { Icon } from 'graphcool-styles'
import { Parser } from 'commonmark'
import * as Reac... | 7,506 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Download/Download.module.styl | .getEndpoint
margin 50px auto
border-radius 3px
color #fff !important
background var(--color-accent)
display inline-block
font-size 20px
// font-weight 300
&:hover
text-decoration none !important
.showEndpoint
margin 50px auto
border-radius 3px
color #191919
font-size 20px
font-weight 20... | 7,507 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Download/Download.tsx | import * as React from 'react'
import ContentEndpoint from '../ContentEndpoint/ContentEndpoint'
import { StoredState } from '../../utils/statestore'
import TrackLink from '../TrackLink/TrackLink'
import { events } from '../../utils/events'
const styles: any = require('./Download.module.styl')
interface Props {
repo... | 7,508 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Loading/Loading.module.css | .root {
border-radius: 100%;
animation: sk-scaleout 1.0s infinite ease-in-out;
}
@keyframes sk-scaleout {
0% {
transform: scale(0);
} 100% {
transform: scale(1.0);
opacity: 0;
}
}
| 7,509 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Loading/Loading.tsx | import * as React from 'react'
const classes: any = require('./Loading.module.css')
interface Props {
color?: string
width?: number
height?: number
className?: string
}
export default class Loading extends React.Component<Props, {}> {
render() {
const width = this.props.width || 30
const height = t... | 7,510 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Markdown/Markdown.module.css | .paragraph {
position: relative;
}
.paragraph .helpWrapper {
position: absolute;
top: calc(50% - 46px);
padding: 30px;
right: -85px;
}
.paragraph .help {
width: 32px;
height: 32px;
opacity: 0;
background: var(--color-gray-1);
color: var(--color-gray-4);
display: flex;
j... | 7,511 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Markdown/Markdown.tsx | import * as React from 'react'
import {Node} from 'commonmark'
import * as ReactRenderer from 'commonmark-react-renderer'
import {slug} from '../../utils/string'
import {StoredState} from '../../utils/statestore'
import {PrismCode} from 'react-prism'
import ContentEndpoint from '../ContentEndpoint/ContentEndpoint'
impo... | 7,512 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/ServerLayover/ServerLayover.tsx | import * as React from 'react'
import * as GraphiQL from 'graphiql'
import * as CopyToClipboard from 'react-copy-to-clipboard'
import * as Relay from 'react-relay'
import BrowserView from '../BrowserView/BrowserView'
import { Icon } from 'graphcool-styles'
import * as ReactGA from 'react-ga'
import { events } from '../... | 7,513 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/SetTrack/SetTrack.module.styl | .button
border-radius 3px
color #fff !important
background var(--color-accent)
display inline-block
font-size 16px
&:hover
text-decoration none !important | 7,514 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/SetTrack/SetTrack.tsx | import * as React from 'react'
import { Icon } from 'graphcool-styles'
import {chapters, Chapter} from '../../utils/content'
import * as classNames from 'classnames'
const styles = require('./SetTrack.module.styl')
import { withRouter } from 'react-router'
interface Props {
router: any
}
const trackIcons = {
'int... | 7,515 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/SharePanel/SharePanel.tsx | import * as React from 'react'
import { getStoredState } from '../../utils/statestore'
import { throttle } from 'lodash'
import * as classNames from 'classnames'
const styles: any = require('./SharingPanel.module.styl')
import { events } from '../../utils/events'
import TrackLink from '../TrackLink/TrackLink'
interfac... | 7,516 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/SharePanel/SharingPanel.module.styl | .button
padding 15px
font-size 1rem
// font-weight 300
// background var(--color-accent)
border-radius 3px
color #fff !important
margin-top 1rem
text-align center
width: 10rem
&:hover
text-decoration none !important
@media (max-width: 540px)
padding 10px
font-size 1rem
.mail
@exte... | 7,517 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Sharing/Sharing.module.styl | .button
padding 15px
font-size 1.5rem
border-radius 3px
color #fff !important
margin-top 1rem
text-align center
&:hover
text-decoration none !important
@media (max-width: 540px)
padding 10px
font-size 1rem
.mail
@extend .button
border-top-right-radius 0
border-bottom-right-radius 0
... | 7,518 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/Sharing/Sharing.tsx | import * as React from 'react'
import {StoredState} from '../../utils/statestore'
import * as ReactGA from 'react-ga'
import { events } from '../../utils/events'
import TrackLink from '../TrackLink/TrackLink'
const styles: any = require('./Sharing.module.styl')
interface Props {
}
interface State {
slackSent: bool... | 7,519 |
0 | petrpan-code/learnapollo/learnapollo/src/components | petrpan-code/learnapollo/learnapollo/src/components/TrackLink/TrackLink.tsx | import * as React from 'react'
import * as ReactGA from 'react-ga'
interface Props {
event: ReactGA.EventArgs
children?: JSX.Element
href: string
className?: string
target?: string
style?: any
download?: string
}
export default class TrackLink extends React.Component<Props, {}> {
render() {
retur... | 7,520 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/mutations/AddPokemonMutation.ts | import * as Relay from 'react-relay'
interface Props {
viewer: any
url: string
name: string
trainerId: string
}
export default class AddPokemonMutation extends Relay.Mutation<Props, {}> {
static fragments = {
viewer: () => Relay.QL`
fragment on Viewer {
id
}
`,
}
getMutatio... | 7,521 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/mutations/DeletePokemonMutation.ts | import * as Relay from 'react-relay'
interface Props {
viewerId: string
pokemonId: string
}
export default class DeletePokemonMutation extends Relay.Mutation<Props, {}> {
getMutation () {
return Relay.QL`mutation{deletePokemon}`
}
getFatQuery () {
return Relay.QL`
fragment on DeletePokemonPayl... | 7,522 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/mutations/UpdatePokemonMutation.ts | import * as Relay from 'react-relay'
interface Props {
pokemonId: string
name: string
url: string
}
export default class UpdatePokemonMutation extends Relay.Mutation<Props, {}> {
getMutation () {
return Relay.QL`mutation{updatePokemon}`
}
getFatQuery () {
return Relay.QL`
fragment on UpdateP... | 7,523 |
0 | petrpan-code/learnapollo/learnapollo/src/pages | petrpan-code/learnapollo/learnapollo/src/pages/landing/LandingPage.module.styl | .root
padding 90px
max-width 920px
margin 0 auto
@media (max-width: 900px)
padding 90px 45px
@media (max-width: 450px)
padding 90px 25px
header
border-bottom 1px solid rgba(0,0,0,0.09)
h1, h2
line-height 1
h1
font-size 70px
color var(--color-accent)
font-we... | 7,524 |
0 | petrpan-code/learnapollo/learnapollo/src/pages | petrpan-code/learnapollo/learnapollo/src/pages/landing/LandingPage.tsx | import * as React from 'react'
import {Link} from 'react-router'
import {chapters} from '../../utils/content'
const styles: any = require('./LandingPage.module.styl')
interface Props {
params: any
}
export default class LandingPage extends React.Component<Props, {}> {
componentDidMount() {
this.toggleSmoochB... | 7,525 |
0 | petrpan-code/learnapollo/learnapollo/src/pages | petrpan-code/learnapollo/learnapollo/src/pages/markdown/MarkdownPage.module.styl | .container
padding 3rem 90px 10rem
@media (max-width: 900px)
padding 3rem 45px 8rem
@media (max-width: 450px)
padding 3rem 25px 6rem
.github
opacity 0.3
.github:hover
opacity 1
text-decoration none !important
| 7,526 |
0 | petrpan-code/learnapollo/learnapollo/src/pages | petrpan-code/learnapollo/learnapollo/src/pages/markdown/MarkdownPage.tsx | import * as React from 'react'
import * as Helmet from 'react-helmet'
import {Node} from 'commonmark'
import {hashLinkScroll} from '../../utils/dom'
import Markdown from '../../components/Markdown/Markdown'
import { Icon } from 'graphcool-styles'
import SharePanel from '../../components/SharePanel/SharePanel'
import { ... | 7,527 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/content.ts | import { Parser, Node } from 'commonmark'
export class Chapter {
title: string
alias: string
isTrack: boolean
description: string
subchapters: Subchapter[]
constructor(title: string,
alias: string,
isTrack: boolean,
description: string,
subchaptersDa... | 7,528 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/dom.ts | export function hashLinkScroll(retryCount: number = 0, retryLimit: number = 300) {
const {hash} = window.location
if (hash !== '') {
window.requestAnimationFrame(() => {
const id = hash.replace('#', '')
const element = document.getElementById(id)
if (element) {
window.scrollTo(0, eleme... | 7,529 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/events.ts | export const events = {
JoinSlack: {
category: 'user',
action: 'joined-slack',
},
SharePanelTwitter: {
category: 'user',
action: 'share/twitter/share-panel',
},
SharePanelFacebook: {
category: 'user',
action: 'share/facebook/share-panel',
},
ShareWrapupTwitter: {
category: 'use... | 7,530 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/location.tsx | export function getParameterByName(name: string): string | null {
name = name.replace(/[\[\]]/g, '\\$&')
const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)')
const results = regex.exec(window.location.href)
if (!results) {
return null
}
if (!results[2]) {
return ''
}
return decodeURICom... | 7,531 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/markdown.ts | import {Node} from 'commonmark'
export interface HeadingNode {
title: string | null
children: HeadingNode[]
}
export interface Heading {
level: number
title: string
}
function inject(root: HeadingNode, title: string, level: number): HeadingNode {
if (level === 1) {
root.title = title
} else {
if ... | 7,532 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/smooch.ts | import {getStoredState} from './statestore'
export function initSmooch(): Promise<void> {
if (!window.Smooch || navigator.userAgent === 'SSR') {
return Promise.resolve()
}
const userData = getStoredState().user
return Smooch.init({
appToken: '4ly1eiob2s078qq6w6wsk9a1r',
email: userData ? userData... | 7,533 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/statestore.ts | import * as Immutable from 'immutable'
interface UserData {
projectId: string
email: string
name: string
}
export interface StoredState {
hasRead: { [key: string]: boolean }
user: UserData | null
skippedAuth: boolean
initialLoadTimestamp: number | null
selectedTrackAlias: string
}
const initialState:... | 7,534 |
0 | petrpan-code/learnapollo/learnapollo/src | petrpan-code/learnapollo/learnapollo/src/utils/string.ts | const _slug = require('slugify')
export function slug(str: string): string {
return _slug(str, {lower: true})
}
| 7,535 |
0 | petrpan-code/learnapollo/learnapollo | petrpan-code/learnapollo/learnapollo/static/_redirects | /* https://www.howtographql.com 301!
# https://learnapollo.com/* https://www.learnapollo.com/:splat 301!
# https://learnapollo.org/* https://www.learnapollo.com/:splat 301!
# https://www.learnapollo.org/* https://www.learnapollo.com/:splat 301!
# /* /index.html 200
| 7,536 |
0 | petrpan-code/learnapollo/learnapollo | petrpan-code/learnapollo/learnapollo/static/humans.txt | # Check it out: http://humanstxt.org/
# TEAM
<name> -- <role> -- <twitter>
# THANKS
<name>
| 7,537 |
0 | petrpan-code/learnapollo/learnapollo | petrpan-code/learnapollo/learnapollo/static/robots.txt | User-agent: *
Disallow:
| 7,538 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.all-contributorsrc | {
"projectName": "theme-ui",
"projectOwner": "system-ui",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"packages/theme-ui/README.md"
],
"imageSize": 63,
"contributorsPerLine": 8,
"commit": true,
"commitConvention": "angular",
"contributors": [
{
"login": "jxnblk... | 7,539 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.eslintignore | dist
.cache
public
node_modules
components
*.esm.js
**/*.md
| 7,540 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.eslintrc.js | module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
extends: ['react-app'],
plugins: ['@typescript-eslint'],
globals: {
__PATH_PREFIX__: true,
},
rules: {
'no-use-before-define': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-esli... | 7,541 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.npmrc | auto-install-peers=true
public-hoist-pattern[]='*eslint*'
public-hoist-pattern[]='*prettier*'
public-hoist-pattern[]='@emotion/react'
| 7,542 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.nvmrc | 18
| 7,543 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.pnpmfile.cjs | const PACKAGES_WITH_ENFORCED_SINGLE_VERSION = ['@emotion/react']
/**
* @author remorses
* @see https://github.com/pnpm/pnpm/issues/2713#issuecomment-1141000426
*/
function afterAllResolved(lockfile, context) {
context.log('Checking duplicate packages...')
const packagesKeys = Object.keys(lockfile.packages)
c... | 7,544 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/.prettierignore | .cache
public
package-lock.json
yarn.lock
pnpm-lock.yaml
node_modules
dist
coverage
examples/next/.next
docs/src/pages/index.mdx
# Prettier doesn't know how to format MDX2 and makes silly mistakes.
*.mdx
| 7,545 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/CHANGELOG.md | # v0.16.1 (Thu Sep 07 2023)
#### 🐛 Bug Fix
- fix: ThemeProvider warning message ([@hasparus](https://github.com/hasparus))
#### 👨💻 Minor changes
- Add missing migration notes on 0.16 to docs ([@hasparus](https://github.com/hasparus))
#### Authors: 1
- Piotr Monwid-Olechnowicz ([@hasparus](https://github.com/h... | 7,546 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/CODE_OF_CONDUCT.md | # Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender... | 7,547 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/CONTRIBUTING.md | # Contributing
Hi! We're looking for some help, and we're excited that you're interested! We
want contributing to this project to be enjoyable and productive for everyone.
All contributions are welcome, including opening and commenting on issues and
pull requests, adding or updating the docs, bug fixes, blog posts, an... | 7,548 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/LICENSE.md | # The MIT License (MIT)
Copyright (c) 2019 Brent Jackson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ... | 7,549 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/MIGRATING.md | # Migration Guides
## v0.16
**🔥 Breaking:** Theme UI now supports and **depends on** TypeScript newer than
5.1.2 (because of breaking changes to JSX types, see
https://github.com/system-ui/theme-ui/issues/2430#issuecomment-1586197881).
- Update `@types/react` to a version published after June 1, 2023.
- JSX Automat... | 7,550 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/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 ... | 7,551 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/auto.config.ts | import { AutoRc } from '@auto-it/core'
import { INpmConfig } from '@auto-it/npm'
import { ConventionalCommitsOptions } from '@auto-it/conventional-commits'
import { IAllContributorsPluginOptions } from '@auto-it/all-contributors'
import { IOmitCommitsPluginOptions } from '@auto-it/omit-commits'
const npmOptions: INpmC... | 7,552 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/babel.config.js | module.exports = {
presets: [
[
'@babel/preset-env',
{
bugfixes: true,
loose: true,
modules: false,
targets: '> 0.25%, not dead, not ie 11',
},
],
[
'@babel/react',
{
runtime: 'automatic',
importSource: '@theme-ui/core',
}... | 7,553 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/codechecks.yml | checks:
- name: build-size-watcher
options:
gzip: true
files:
- path: './packages/color/dist/theme-ui-color.esm.js'
- path: './packages/color-modes/dist/theme-ui-color-modes.esm.js'
- path: './packages/components/dist/theme-ui-components.esm.js'
- path: './packages/core... | 7,554 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/jest-preprocess.js | module.exports = require('babel-jest').default.createTransformer({
presets: [['@babel/preset-react', { runtime: 'automatic' }]],
overrides: [
{
test: /gatsby-plugin-theme-ui/,
presets: ['babel-preset-gatsby'],
},
],
})
| 7,555 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/jest.config.ts | // @ts-check
import type { JestConfigWithTsJest } from 'ts-jest'
const config: JestConfigWithTsJest = {
preset: 'ts-jest',
transform: {
'^.+.tsx?$': [
'ts-jest',
{
tsconfig: './tsconfig.test.json',
},
],
'^.+\\.m?jsx?$': '<rootDir>/jest-preprocess.js',
},
testMatch: [
... | 7,556 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/lint-staged.config.js | module.exports = {
'*.{js,json}': ['prettier --write'],
}
| 7,557 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/package.json | {
"name": "@theme-ui/monorepo",
"version": "0.16.1",
"private": true,
"scripts": {
"build": "preconstruct build",
"build:docs": "pnpm build && pnpm run --filter docs build",
"serve:docs": "pnpm build:docs && pnpm run --filter docs serve",
"dev:docs": "pnpm run --filter docs start",
"clean": ... | 7,558 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/pnpm-lock.yaml | lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
overrides:
'@types/readable-stream': 2.3.11
'@babel/core': 7.22.5
importers:
.:
dependencies:
'@auto-it/all-contributors':
specifier: ^10.46.0
version: 10.46.0(@types/node@20.3.1)(typescript@5... | 7,559 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/pnpm-workspace.yaml | packages:
- "packages/*"
- "examples/*"
| 7,560 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/prettier.config.js | module.exports = {
singleQuote: true,
trailingComma: 'es5',
printWidth: 80,
semi: false,
arrowParens: 'always',
proseWrap: 'always',
}
| 7,561 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/tsconfig.json | {
"extends": "./tsconfig.options.json",
"include": ["./packages/**/*"],
"exclude": [
"node_modules",
"./packages/*/dist",
"./packages/*/node_modules",
"./packages/e2e"
]
}
| 7,562 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/tsconfig.options.json | {
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"moduleResolution": "node",
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "@theme-ui/core",
"noEmit": true,
"module": "es2015",
"isolatedModules": true,
"target": "es2018",
// @types/reactcs... | 7,563 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/tsconfig.test.json | {
"extends": "./tsconfig.options.json",
"compilerOptions": {
"target": "es2021",
"module": "NodeNext",
"esModuleInterop": true,
"resolveJsonModule": true,
"jsx": "react-jsx",
"jsxImportSource": "@theme-ui/core",
"alwaysStrict": true,
"noImplicitThis": true,
"noImplicitAny": false... | 7,564 |
0 | petrpan-code/system-ui | petrpan-code/system-ui/theme-ui/vercel.json | {
"redirects": [
{
"source": "/use-theme-ui",
"destination": "/hooks",
"permanent": false
},
{
"source": "/how-it-works",
"destination": "/guides/how-it-works",
"permanent": false
},
{
"source": "/jsx-pragma",
"destination": "/guides/jsx-pragma",
... | 7,565 |
0 | petrpan-code/system-ui/theme-ui | petrpan-code/system-ui/theme-ui/.codesandbox/ci.json | {
"installCommand": "codesandbox-ci:install",
"buildCommand": "build",
"packages": ["packages/theme-ui", "packages/core"],
"sandboxes": ["/examples/next", "/examples/gatsby-plugin"],
"node": "18"
}
| 7,566 |
0 | petrpan-code/system-ui/theme-ui/.husky | petrpan-code/system-ui/theme-ui/.husky/_/husky.sh | #!/bin/sh
if [ -z "$husky_skip_init" ]; then
debug () {
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
}
readonly hook_name="$(basename "$0")"
debug "starting $hook_name..."
if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi
if [ -f ~/.huskyrc... | 7,567 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/gatsby-config.js | /** @type {import('gatsby').GatsbyConfig} */
module.exports = {
plugins: ['gatsby-plugin-mdx', 'gatsby-plugin-theme-ui'],
}
| 7,568 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/package.json | {
"private": true,
"name": "gatsby-plugin-theme-ui-example",
"version": "0.1.0",
"main": "index.js",
"author": "Brent Jackson <jxnblk@gmail.com>",
"license": "MIT",
"scripts": {
"develop": "gatsby develop",
"start": "gatsby develop",
"clean": "gatsby clean",
"build": "gatsby build"
},
... | 7,569 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/src/layout.js | /** @jsxImportSource theme-ui */
import { Themed } from 'theme-ui'
const Layout = (props) => (
<Themed.root>
<header>
<h2>Theme UI Gatsby Example</h2>
</header>
<main>
<div sx={{ fontFamily: 'body' }}>{props.children}</div>
</main>
</Themed.root>
)
export default Layout
| 7,570 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/src | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/src/gatsby-plugin-theme-ui/index.js | const theme = {
config: {
initialColorModeName: 'light',
},
colors: {
text: '#000',
background: '#fff',
primary: '#07c',
secondary: '#609',
},
fonts: {
body:
'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
heading: 'inherit',
... | 7,571 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/src | petrpan-code/system-ui/theme-ui/examples/gatsby-plugin/src/pages/index.mdx | import Layout from '../layout'
export default Layout
# Hello
This page is written in [MDX][] and styled with [Theme UI][].
[theme ui]: https://theme-ui.now.sh
[mdx]: https://mdxjs.com
| 7,572 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby/gatsby-browser.js | import { WrapRootElement } from './src'
export const wrapRootElement = ({ element }) => (
<WrapRootElement element={element} />
)
| 7,573 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby/gatsby-config.js | /** @type {import('gatsby').GatsbyConfig} */
module.exports = {
jsxRuntime: 'automatic',
plugins: [
'gatsby-plugin-mdx',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages`,
},
},
],
}
| 7,574 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby/gatsby-ssr.js | import * as React from 'react'
import { WrapRootElement } from './src'
export const wrapRootElement = ({ element }) => (
<WrapRootElement element={element} />
)
| 7,575 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby/package.json | {
"private": true,
"name": "gatsby-theme-ui-example",
"version": "0.1.0",
"main": "index.js",
"author": "Brent Jackson <jxnblk@gmail.com>",
"license": "MIT",
"scripts": {
"develop": "gatsby clean && gatsby develop",
"start": "gatsby develop",
"clean": "gatsby clean",
"build": "gatsby build... | 7,576 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/gatsby/tsconfig.json | {
"compilerOptions": {
"strict": true,
"jsx": "react-jsx"
},
"include": ["src"]
}
| 7,577 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby | petrpan-code/system-ui/theme-ui/examples/gatsby/src/index.tsx | import { ReactNode } from 'react'
import { ThemeUIProvider } from 'theme-ui'
import { Themed, useThemedStylesWithMdx } from '@theme-ui/mdx'
import { MDXProvider, useMDXComponents } from '@mdx-js/react'
import theme from './theme'
export const WrapRootElement = ({ element }: { element: ReactNode }) => {
const compone... | 7,578 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby | petrpan-code/system-ui/theme-ui/examples/gatsby/src/layout.tsx | import { ReactNode } from 'react'
import { Box, Container } from 'theme-ui'
export const Layout = ({ children }: { children: ReactNode }) => {
return (
<Box sx={{ py: 2, px: 4 }}>
<Box as="header">
<h2>Theme UI Gatsby Example</h2>
</Box>
<Box as="main">
<Container>{children}</Co... | 7,579 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby | petrpan-code/system-ui/theme-ui/examples/gatsby/src/theme.ts | import type { Theme } from 'theme-ui'
const theme: Theme = {
config: {
initialColorModeName: 'light',
},
colors: {
text: '#000',
background: '#fff',
primary: 'rgb(0 0 255)',
primary05: 'rgb(0 0 255 / 0.05)',
secondary: '#609',
},
fonts: {
body: 'system-ui, -apple-system, BlinkMacS... | 7,580 |
0 | petrpan-code/system-ui/theme-ui/examples/gatsby/src | petrpan-code/system-ui/theme-ui/examples/gatsby/src/pages/index.mdx | import { Layout } from '../layout'
export default Layout
# Hello
This page is written in [MDX][] and styled with [Theme UI][].
[theme ui]: https://theme-ui.com/
[mdx]: https://mdxjs.com
| 7,581 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/next/next-env.d.ts | /// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
| 7,582 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/next/next.config.js | const path = require('path')
const withMDX = require('@next/mdx')()
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
webpack(config) {
// This is just for the sake of example app.
// yarn link doesn't play well with React hooks.
// https://github.com/facebook/react/issues/... | 7,583 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/next/package.json | {
"private": true,
"name": "next-theme-ui-example",
"version": "9.9.9",
"main": "index.js",
"author": "Brent Jackson <jxnblk@gmail.com>",
"license": "MIT",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@e... | 7,584 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/next/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resol... | 7,585 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/components/Header.tsx | import { Button, useColorMode } from 'theme-ui'
const Header = () => {
const [colorMode, setColorMode] = useColorMode()
return (
<header>
<Button
suppressHydrationWarning
onClick={() => setColorMode(colorMode === 'light' ? 'dark' : 'light')}
>
Toggle {colorMode === 'light' ... | 7,586 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/components/about.mdx | import { Switch } from 'theme-ui'
# Hello!
This example site uses [Theme UI][] with [Next.js][]. This content is written in
[MDX][].
[next.js]: https://github.com/vercel/next.js
[theme ui]: https://theme-ui.com
[mdx]: https://mdxjs.com
<Switch label="@theme-ui/components work seamlessly" />
| 7,587 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/lib/mdx.d.ts | declare module '*.mdx' {
let MDXComponent: (props: any) => JSX.Element
export default MDXComponent
}
| 7,588 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/lib/theme.ts | import { makeTheme } from '@theme-ui/css/utils'
export const theme = makeTheme({
config: {
initialColorModeName: 'light',
useColorSchemeMediaQuery: true,
},
colors: {
text: '#000',
background: '#fff',
primary: '#07c',
secondary: '#b0b',
modes: {
dark: {
text: '#fff',
... | 7,589 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/pages/_app.tsx | /** @jsxImportSource theme-ui */
import { ThemeUIProvider } from 'theme-ui'
import Header from '../components/Header'
import { theme } from '../lib/theme'
import type { AppProps } from 'next/app'
/**
* @see https://nextjs.org/docs/advanced-features/custom-app
* @see https://nextjs.org/docs/basic-features/typescript... | 7,590 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/pages/_document.tsx | import { Html, Head, Main, NextScript } from 'next/document'
import { InitializeColorMode } from 'theme-ui'
export default function Document() {
return (
<Html>
<Head />
<body>
<InitializeColorMode />
<Main />
<NextScript />
</body>
</Html>
)
}
| 7,591 |
0 | petrpan-code/system-ui/theme-ui/examples/next | petrpan-code/system-ui/theme-ui/examples/next/pages/index.tsx | import Head from 'next/head'
import About from '../components/about.mdx'
import { Global } from 'theme-ui'
export default function Page() {
return (
<>
<Head>
<title>Next.js Theme UI</title>
</Head>
<Global styles={{ h1: { color: 'salmon !important' } }} />
<About />
</>
)
}... | 7,592 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/typography/gatsby-browser.js | import * as React from 'react'
import { WrapRootElement } from './src'
export const wrapRootElement = ({ element }) => (
<WrapRootElement element={element} />
)
| 7,593 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/typography/gatsby-config.js | // @ts-check
/** @type {import('gatsby').GatsbyConfig} */
module.exports = {
jsxRuntime: 'automatic',
jsxImportSource: 'theme-ui',
plugins: [
'gatsby-plugin-mdx',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages`,
},
},
... | 7,594 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/typography/gatsby-ssr.js | import * as React from 'react'
import { WrapRootElement } from './src'
export const wrapRootElement = ({ element }) => (
<WrapRootElement element={element} />
)
| 7,595 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/typography/package.json | {
"private": true,
"name": "typography-js-theme-ui-example",
"version": "0.1.0",
"main": "index.js",
"author": "Brent Jackson <jxnblk@gmail.com>",
"license": "MIT",
"scripts": {
"start": "gatsby develop",
"clean": "gatsby clean",
"build": "gatsby build"
},
"dependencies": {
"@mdx-js/re... | 7,596 |
0 | petrpan-code/system-ui/theme-ui/examples | petrpan-code/system-ui/theme-ui/examples/typography/tsconfig.json | {
"compilerOptions": {
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "theme-ui",
"esModuleInterop": true
},
"include": ["src"]
}
| 7,597 |
0 | petrpan-code/system-ui/theme-ui/examples/typography | petrpan-code/system-ui/theme-ui/examples/typography/src/index.tsx | import { ReactNode } from 'react'
import { ThemeUIProvider } from 'theme-ui'
import theme from './theme'
export const WrapRootElement = ({ element }: { element: ReactNode }) => (
<ThemeUIProvider theme={theme}>{element}</ThemeUIProvider>
)
| 7,598 |
0 | petrpan-code/system-ui/theme-ui/examples/typography | petrpan-code/system-ui/theme-ui/examples/typography/src/layout.tsx | import { ReactNode } from 'react'
import { Container } from 'theme-ui'
const Layout = (props: { children: ReactNode }) => (
<Container>{props.children}</Container>
)
export default Layout
| 7,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.