Skip to content

Instantly share code, notes, and snippets.

@Vetrivel-VP
Created August 9, 2023 05:59
Show Gist options
  • Save Vetrivel-VP/1d6a3384afd122f4643b5db4b2b16e3f to your computer and use it in GitHub Desktop.
Save Vetrivel-VP/1d6a3384afd122f4643b5db4b2b16e3f to your computer and use it in GitHub Desktop.
Codepen Clone Helpers
TailwindCss Configurations
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
colors: {
primary: "#131417",
secondary: "#1E1F26",
primaryText: "#868CA0",
text555: "#555",
},
},
},
plugins: [],
};
**************************************************************
index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);
body {
background: #131417;
font-family: "Poppins", sans-serif, system-ui, -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
"Open Sans", "Helvetica Neue", sans-serif;
}
.Resizer {
background: #ffffff;
opacity: 0.2;
z-index: 1;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-moz-background-clip: padding;
-webkit-background-clip: padding;
background-clip: padding-box;
}
.Resizer:hover {
-webkit-transition: all 2s ease;
transition: all 2s ease;
}
.Resizer.horizontal {
height: 11px;
margin: -5px 0;
border-top: 5px solid rgba(255, 255, 255, 0);
border-bottom: 5px solid rgba(255, 255, 255, 0);
cursor: row-resize;
width: 100%;
}
.Resizer.horizontal:hover {
border-top: 5px solid rgba(255, 255, 255, 0.5);
border-bottom: 5px solid rgba(255, 255, 255, 0.5);
}
.Resizer.vertical {
width: 11px;
margin: 0 -5px;
border-left: 5px solid rgba(255, 255, 255, 0);
border-right: 5px solid rgba(255, 255, 255, 0);
cursor: col-resize;
}
.Resizer.vertical:hover {
border-left: 5px solid rgba(255, 255, 255, 0.5);
border-right: 5px solid rgba(255, 255, 255, 0.5);
}
.Resizer.disabled {
cursor: not-allowed;
}
.Resizer.disabled:hover {
border-color: transparent;
}
.pane {
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
font-weight: bold;
color: #333;
}
.pane1 {
background-color: #f0f0f0;
}
.pane2 {
background-color: #e0e0e0;
}
.pane3 {
background-color: #d0d0d0;
}
.CodeMirror {
height: 340px !important;
color: #fff;
}
.CodeMirror-gutters {
background: #1d1e22 !important;
}
.CodeMirror-scroll {
background: #1d1e22;
}
.CodeMirror {
padding-top: 0 !important;
}
.SplitPane.horizontal {
top: 100px !important;
}
.ͼo {
background: #131417 !important;
}
****************************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment