├── apps
└── website
│ ├── .nvmrc
│ ├── .npmrc
│ ├── .eslintignore
│ ├── images.d.ts
│ ├── src
│ ├── app
│ │ ├── not-found.tsx
│ │ ├── favicon.ico
│ │ ├── favicon-16x16.png
│ │ ├── favicon-32x32.png
│ │ ├── apple-touch-icon.png
│ │ ├── android-chrome-192x192.png
│ │ ├── android-chrome-512x512.png
│ │ ├── page.tsx
│ │ └── layout.tsx
│ ├── components
│ │ ├── hero
│ │ │ ├── hero.css
│ │ │ └── Hero.tsx
│ │ ├── kawaiiList
│ │ │ ├── kawaiiListDialog.css
│ │ │ ├── kawaiiListToolbar.css
│ │ │ ├── kawaiiListGrid.css
│ │ │ ├── KawaiiList.tsx
│ │ │ ├── KawaiiListGrid.tsx
│ │ │ ├── KawaiiListDialog.tsx
│ │ │ └── KawaiiListToolbar.tsx
│ │ ├── header
│ │ │ ├── header.css
│ │ │ └── Header.tsx
│ │ ├── button
│ │ │ ├── buttonGitHubStars.css
│ │ │ ├── buttonThemeToggle.css
│ │ │ ├── ButtonThemeToggle.tsx
│ │ │ └── ButtonGithubStars.tsx
│ │ ├── codeBlock
│ │ │ ├── codeBlock.css
│ │ │ └── CodeBlock.tsx
│ │ └── footer
│ │ │ ├── footer.css
│ │ │ └── Footer.tsx
│ ├── utils
│ │ └── capitalizeFirstLetter.ts
│ ├── constants
│ │ └── index.ts
│ ├── mdx-components.tsx
│ └── global.css
│ ├── .prettierignore
│ ├── public
│ ├── images
│ │ └── react-kawaii-open-graph.png
│ └── logo.svg
│ ├── .eslintrc.js
│ ├── next-env.d.ts
│ ├── turbo.json
│ ├── tsconfig.json
│ ├── next.config.js
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── LICENSE.md
│ └── package.json
├── .vscode
├── extensions.json
└── settings.json
├── pnpm-workspace.yaml
├── images
├── react-kawaii-example.gif
└── react-kawaii-logo@2x.png
├── .prettierignore
├── packages
└── react-kawaii
│ ├── .eslintrc.js
│ ├── src
│ ├── utils
│ │ └── getFaceScale.ts
│ ├── types
│ │ └── index.ts
│ ├── constants
│ │ └── index.ts
│ ├── index.ts
│ └── components
│ │ ├── Planet.tsx
│ │ ├── CreditCard.tsx
│ │ ├── IceCream.tsx
│ │ ├── SpeechBubble.tsx
│ │ ├── Mug.tsx
│ │ ├── File.tsx
│ │ ├── Folder.tsx
│ │ ├── Ghost.tsx
│ │ ├── Chocolate.tsx
│ │ ├── Browser.tsx
│ │ ├── common
│ │ ├── Face.tsx
│ │ └── paths.ts
│ │ ├── HumanDinosaur.tsx
│ │ ├── Backpack.tsx
│ │ ├── HumanCat.tsx
│ │ ├── Cat.tsx
│ │ ├── Cyborg.tsx
│ │ └── Astronaut.tsx
│ ├── .gitignore
│ ├── tsconfig.json
│ ├── package.json
│ ├── dist
│ ├── index.d.mts
│ └── index.d.ts
│ ├── CHANGELOG.md
│ ├── README.md
│ └── scripts
│ └── generate.ts
├── .gitignore
├── configs
├── tsconfig
│ ├── package.json
│ ├── README.md
│ ├── nextjs.json
│ └── base.json
└── eslint-config-react-kawaii
│ ├── README.md
│ ├── package.json
│ └── nextjs.js
├── .prettierrc.js
├── .changeset
├── config.json
└── README.md
├── turbo.json
├── .github
└── FUNDING.yml
├── LICENSE.md
├── scripts
└── checkSubprojects.ts
├── package.json
└── README.md
/apps/website/.nvmrc:
--------------------------------------------------------------------------------
1 | 18
2 |
--------------------------------------------------------------------------------
/apps/website/.npmrc:
--------------------------------------------------------------------------------
1 | enable-pre-post-scripts=true
2 |
--------------------------------------------------------------------------------
/apps/website/.eslintignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .eslintrc.js
3 | next.config.js
4 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": ["dbaeumer.vscode-eslint"]
3 | }
4 |
--------------------------------------------------------------------------------
/apps/website/images.d.ts:
--------------------------------------------------------------------------------
1 | // images.d.ts
2 | ///
Not found
; 3 | } 4 | -------------------------------------------------------------------------------- /apps/website/.prettierignore: -------------------------------------------------------------------------------- 1 | **/.git 2 | **/.svn 3 | **/.hg 4 | **/node_modules 5 | **/.contentlayer 6 | **/.content 7 | -------------------------------------------------------------------------------- /images/react-kawaii-example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/images/react-kawaii-example.gif -------------------------------------------------------------------------------- /images/react-kawaii-logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/images/react-kawaii-logo@2x.png -------------------------------------------------------------------------------- /apps/website/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/src/app/favicon.ico -------------------------------------------------------------------------------- /apps/website/src/app/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/src/app/favicon-16x16.png -------------------------------------------------------------------------------- /apps/website/src/app/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/src/app/favicon-32x32.png -------------------------------------------------------------------------------- /apps/website/src/app/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/src/app/apple-touch-icon.png -------------------------------------------------------------------------------- /apps/website/src/app/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/src/app/android-chrome-192x192.png -------------------------------------------------------------------------------- /apps/website/src/app/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/src/app/android-chrome-512x512.png -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .eslintcache 3 | .next/ 4 | public/ 5 | **/.contentlayer 6 | **/.content 7 | 8 | # turbo 9 | .turbo 10 | .vercel 11 | -------------------------------------------------------------------------------- /apps/website/src/components/hero/hero.css: -------------------------------------------------------------------------------- 1 | .hero h1 { 2 | font-family: var(--font-baloo); 3 | } 4 | 5 | .hero__getStartedBtn { 6 | cursor: pointer; 7 | } 8 | -------------------------------------------------------------------------------- /packages/react-kawaii/.eslintrc.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @type {import("eslint").Linter.Config} 3 | */ 4 | module.exports = { 5 | extends: 'react-kawaii/nextjs' 6 | }; 7 | -------------------------------------------------------------------------------- /apps/website/public/images/react-kawaii-open-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elizabetdev/react-kawaii/HEAD/apps/website/public/images/react-kawaii-open-graph.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .eslintcache 3 | .next/ 4 | tsconfig.tsbuildinfo 5 | *.code-workspace 6 | 7 | # turbo 8 | .turbo 9 | .vercel 10 | 11 | **/.DS_Store -------------------------------------------------------------------------------- /apps/website/src/components/kawaiiList/kawaiiListDialog.css: -------------------------------------------------------------------------------- 1 | .kawaiiListDialog__code { 2 | background: var(--color-illustration-bg); 3 | border-radius: var(--radius-5); 4 | } 5 | -------------------------------------------------------------------------------- /apps/website/src/utils/capitalizeFirstLetter.ts: -------------------------------------------------------------------------------- 1 | export const capitalizeFirstLetter = (string: string) => { 2 | return string.charAt(0).toUpperCase() + string.slice(1); 3 | }; 4 | -------------------------------------------------------------------------------- /configs/tsconfig/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tsconfig", 3 | "version": "0.0.0", 4 | "private": true, 5 | "devDependencies": { 6 | "typescript": "^5.4.5" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /configs/tsconfig/README.md: -------------------------------------------------------------------------------- 1 | # Shared tsconfig 2 | 3 | ## Usage 4 | 5 | In your `tsconfig.json`: 6 | 7 | ```json 8 | { 9 | "extends": "tsconfig/base.json" // or "tsconfig/nextjs.json" 10 | } 11 | ``` 12 | -------------------------------------------------------------------------------- /configs/eslint-config-react-kawaii/README.md: -------------------------------------------------------------------------------- 1 | # Shared ESLint configuration 2 | 3 | ## Usage 4 | 5 | In your `.eslintrc.js`: 6 | 7 | ```js 8 | module.exports = { 9 | extends: 'react-kawaii/nextjs' 10 | }; 11 | ``` 12 | -------------------------------------------------------------------------------- /apps/website/.eslintrc.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @type {import("eslint").Linter.Config} 3 | */ 4 | module.exports = { 5 | extends: 'react-kawaii/nextjs', 6 | linterOptions: { 7 | exclude: ['src/app/mdx-components.tsx'] 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /apps/website/src/components/header/header.css: -------------------------------------------------------------------------------- 1 | .header__logo { 2 | display: flex; 3 | align-items: center; 4 | gap: var(--space-1); 5 | text-decoration: none; 6 | } 7 | 8 | .header__link { 9 | text-decoration: none; 10 | } 11 | -------------------------------------------------------------------------------- /apps/website/next-env.d.ts: -------------------------------------------------------------------------------- 1 | ///
11 |
12 |
55 |
56 |
9 |
10 |
39 |
40 |
{prop.type}
52 | {prop.default}
56 | `
34 | // https://github.com/wooorm/xdm/issues/47
35 | const childText = typeof children === 'string' ? children : children.props.children;
36 | return
50 |
52 |
66 |
68 |
121 | ) : (
122 |
123 | );
124 | },
125 | NextLink,
126 | Kbd: Kbd,
127 | Code,
128 | Flex,
129 | ...components
130 | };
131 | }
132 |
--------------------------------------------------------------------------------
/packages/react-kawaii/src/components/HumanDinosaur.tsx:
--------------------------------------------------------------------------------
1 | import { FunctionComponent } from 'react';
2 | import { DEFAULT_PROPS } from '../constants';
3 | import { KawaiiProps } from '../types';
4 | import { getFaceScale } from '../utils/getFaceScale';
5 | import { Face } from './common/Face';
6 |
7 | export const HumanDinosaur: FunctionComponent