2 |
3 | ## BG.IBELICK
4 |
5 | Collection of modern, background snippets.
6 | Ready to use, simply copy and paste it into your next project. All snippets are crafted with Tailwind CSS.
7 |
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "printWidth": 80,
3 | "tabWidth": 2,
4 | "useTabs": false,
5 | "semi": true,
6 | "singleQuote": true,
7 | "trailingComma": "es5",
8 | "bracketSpacing": true,
9 | "jsxBracketSameLine": false,
10 | "arrowParens": "avoid",
11 | "endOfLine": "auto"
12 | }
13 |
--------------------------------------------------------------------------------
/components.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://ui.shadcn.com/schema.json",
3 | "style": "default",
4 | "rsc": true,
5 | "tailwind": {
6 | "config": "tailwind.config.js",
7 | "css": "app/globals.css",
8 | "baseColor": "neutral",
9 | "cssVariables": true
10 | },
11 | "aliases": {
12 | "components": "@/components",
13 | "utils": "@/lib/utils"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 |
27 | # local env files
28 | .env*.local
29 |
30 | # vercel
31 | .vercel
32 |
33 | # typescript
34 | *.tsbuildinfo
35 | next-env.d.ts
36 |
--------------------------------------------------------------------------------
/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": ["dom", "dom.iterable", "esnext"],
5 | "allowJs": true,
6 | "skipLibCheck": true,
7 | "strict": true,
8 | "forceConsistentCasingInFileNames": true,
9 | "noEmit": true,
10 | "esModuleInterop": true,
11 | "module": "esnext",
12 | "moduleResolution": "node",
13 | "resolveJsonModule": true,
14 | "isolatedModules": true,
15 | "jsx": "preserve",
16 | "incremental": true,
17 | "plugins": [
18 | {
19 | "name": "next"
20 | }
21 | ],
22 | "paths": {
23 | "@/*": ["./*"]
24 | }
25 | },
26 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27 | "exclude": ["node_modules"]
28 | }
29 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "background-snippets",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "dev": "next dev",
7 | "build": "next build",
8 | "start": "next start",
9 | "lint": "next lint"
10 | },
11 | "dependencies": {
12 | "@radix-ui/react-slot": "^1.0.2",
13 | "@types/node": "20.3.3",
14 | "@types/react": "18.2.14",
15 | "@types/react-dom": "18.2.6",
16 | "autoprefixer": "10.4.14",
17 | "class-variance-authority": "^0.6.1",
18 | "clsx": "^1.2.1",
19 | "eslint": "8.44.0",
20 | "eslint-config-next": "13.4.8",
21 | "lucide-react": "^0.258.0",
22 | "next": "13.4.8",
23 | "postcss": "8.4.24",
24 | "react": "18.2.0",
25 | "react-dom": "18.2.0",
26 | "sonner": "^0.5.0",
27 | "tailwind-merge": "^1.13.2",
28 | "tailwindcss": "3.3.2",
29 | "tailwindcss-animate": "^1.0.6",
30 | "typescript": "5.1.6"
31 | },
32 | "devDependencies": {
33 | "prettier": "^3.0.0",
34 | "prettier-plugin-tailwindcss": "^0.4.0"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/public/next.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/components/playground.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOMServer from 'react-dom/server';
3 | import { toast } from 'sonner';
4 |
5 | type PlaygroundProps = {
6 | children: React.ReactElement;
7 | setPreview: (preview: React.ReactNode) => void;
8 | theme: 'light' | 'dark';
9 | setTheme: (theme: 'light' | 'dark') => void;
10 | };
11 |
12 | const Playground: React.FC84 | Ready-to-use, simply copy and paste into your next project. All 85 | snippets crafted with Tailwind CSS and{' '} 86 | Vanilla CSS for 87 | easy integration. 88 |
89 |