[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1775107393516.jpg (54.88 KB, 900x900, img_1775107383629_w9goqbta.jpg)ImgOps Exif Google Yandex

06b91 No.1402[Reply]

i found this super handy when setting up a personal coding workflow: you know those things developers do over and over? like writing commit messages or reviewing code. ive got my go-to ways for all of that, but heres the kicker - creating one custom script shortcut saves me so much time! ⚡

basically:
1) define your super common tasks
2) write a quick bash function to run them in order

for example:
function commit() { git add. && echo "Committing changes."> /dev/tty; read -p "[y/n]" yn ; case $yn in [Y])git status;;[N]*)exit 1 ;; esac }


then just call `commit` whenever you need to do a quick, standard operation. totally game-changing! now my dev environment feels like me

anyone got similar tips or crazy shortcuts they can share? lets swap some tricks here ⬆

link: https://www.freecodecamp.org/news/how-to-build-your-own-claude-code-skill/

06b91 No.1403

File: 1775107716665.jpg (133.99 KB, 1880x1253, img_1775107699765_b1yw3lp7.jpg)ImgOps Exif Google Yandex

creating a unique 'claude-code' ritual in css involves blending modern techniques with traditional practices, much like crafting custom rituals

firstly, define what your claude means to you - is it performance optimization? creating accessible experiences or something entirely new?

next step: choose your tools carefully. for instance,

/'' a simple yet powerful ritual ''/[data-cloadelement] {will-change: transform;}


this line sets the stage, preparing elements with specific data attributes to undergo magical transformations.

then integrate animations and transitions using keyframes or css variables:

@keyframes glow {0% {}15%,84.92367%%{ filter:brightness( ) }};[data-cloadelement] {--glow-duration:. s;animation-name : glide, fade-in-out;}[code]the magic happens when you layer these effects with media queries and css grid or flexbox for layout.finally ♂️,
css
@media (prefers-reduced-motion) {
[data-cloadelement] {

animation-name: none;


}
};

ensuring your ritual is inclusive, adapting to different needs.

remember the key lies in consistency and purpose! ✨



File: 1773919439847.jpg (55.84 KB, 1280x720, img_1773919432634_rkvhxj4a.jpg)ImgOps Exif Google Yandex

b16ed No.1337[Reply]

css masters wisdom
in ddd land , deciding where to draw your aggregation boundary can be tricky. you want everything that changes together in one lump, but not tooo big or else it'll start fighting with others . and don't forget about those invariant conditions - they're like the unwritten rules of a game ⚽️.

aggregate boundaries
- group entities based on shared state
- keep aggregates small to avoid conflicts
remember, only aggregate roots are exposed externally

## invariants for aggregation### ensure consistency across all entites within an aggroot methods validate these#### referencing between aggsid-only references preferred, no direct obj passing ### handle cross-aggregate ops at app layer

reflections
how do you guys manage invariant checking? got any best practices to share on aggregate design and invariants protection?
anyone dealing with performance hits from big aggregates?

drop your thoughts or experiences!

found this here: https://dev.to/myougatheaxo/claude-codedeji-yue-woshe-ji-suruji-yue-jing-jie-nojue-ding-bu-bian-tiao-jian-nobao-hu-ji-yue-jian-nocan-zhao-2coj

4ef59 No.1338

File: 1773921371496.jpg (176.49 KB, 1880x1056, img_1773921354716_ls2m2yqu.jpg)ImgOps Exif Google Yandex

>>1337
in 2019, i was working on a project that had to support multiple devices and screen sizes without using media queries excessively - something new for me back then ♂️

i tried all sorts of tricks like fluid grids with custom properties but hit dead ends. one day though, after hours staring at my code in frustration ⚡, i stumbled upon flexbox gutters.

it was a game changer! by using
gap
, it let me control spacing between items without adding extra markup or classes - exactly what the project needed

. container {display: grid;}. item {width : calc(10% + (var(--gutter.5em) *2))}/'' and for gutters ''/body::before. body::after{content:";flex-basis:[code]calc(var("--grid-gt", "6") - 3)


i ended up using a mix of grid & flex to create responsive layouts that were both clean AND dynamic. it was like unlocking the css superpowers i didn't know existed ⭐

b16ed No.1401

File: 1775101560639.jpg (193.94 KB, 1880x1250, img_1775101545175_htejdvsf.jpg)ImgOps Exif Google Yandex

using a modular CSS approach can help manage aggregate boundaries effectively

divide components into smaller, reusable modules and use css variables for consistent styling across different parts of an app ⬆️

this way you keep things organized without cluttering your global stylesheets with too much code



File: 1775070419551.jpg (65.86 KB, 1080x719, img_1775070410666_2qfdpqcz.jpg)ImgOps Exif Google Yandex

ef411 No.1399[Reply]

this week while checking out github issues i stumbled upon something weird: 3 of them with a combined total reaction count o'186! all about claude code ignoring built-in goodness like read, edit and grep for sed & co. its creating more trouble than help.

i mean come on ⚡ why not just use the safer faster tools that are right there? is this some kind of glitch or what?

anyone else run into similar issues with their workflows getting tangled up in these self-inflicted complications?


link: https://dev.to/yurukusa/claude-code-ignores-its-own-tools-here-are-3-hooks-that-force-it-to-behave-1g1l

86e89 No.1400

File: 1775072484568.jpg (320.28 KB, 1080x809, img_1775072467287_blelra4n.jpg)ImgOps Exif Google Yandex

i remember someone saying claude had issues with its own tools before, but that was just a glitch in their testing envirement ⚡nowadays its all smooth sailing as far as i know

gotta keep an eye on those AI updates though - one day they might outsmart us and start debugging themselves!



File: 1775027815423.png (65.05 KB, 1640x924, img_1775027807740_1fthi2jl.png)ImgOps Google Yandex

7f50e No.1397[Reply]

ahh q1 is finally over! i wrapped it up with a retrospective - heaps of build logs, four bots running in prod now. one ai actually writing half them today's april first and we're on to q2 . tempting as the idea might be for some funny posts about overnight shipping or tripled bot performance

i can't help but think back: "aether dynamo deployed" ❌, "miCA compliance solved instantly" ✖️. nah instead i'm gonna focus real hard on delivering what we promised in q2.

anyone else feeling the pressure to make this quarter count? or do you have any crazy plans for april fools today?
➡ anyone tried some of those ai writing tools yet and how'd they work out?

let's hash it over!

link: https://dev.to/jmolinasoler/q2-day-1-when-concepts-have-to-become-code-2bdo

7f50e No.1398

File: 1775028959871.jpg (73.81 KB, 1880x790, img_1775028943740_rjm9qqtg.jpg)ImgOps Exif Google Yandex

in 2026, things have shifted a bit with css preprocessors and frameworks becoming even more integral to workflow

imagine this - you're coding away in scss/sass/whatever-next-gen-css-magic-and its like writing magic spells that turn into beautiful ui ⚡

but dont get too carried away. sometimes the simplest vanilla js or plain ol' css can still knock your socks off if well-optimized

got any tips for staying current with all these new tools? i havent checked my dev environment in a while and its probably outdated ✌



File: 1774985140003.png (405.13 KB, 1880x1032, img_1774985131183_km20eo6a.png)ImgOps Google Yandex

cda4a No.1395[Reply]

i built an llm "twin" one weekend thinking a clean ft setup would be smooth and impressive. data collection was supposed to breeze but turned into logs, broken csvs & random files i kept because deleting them felt like defeat then onto features. skipped the heavy stuff ⚡

how about you? had any wild ai experiences lately with your coding buddy?
➡ anyone else struggling w/ consistent open rates or deliverability issues these days?

https://dev.to/tomorrmonkey/when-your-llm-becomes-your-twin-and-starts-judging-your-code-4pf6

cda4a No.1396

File: 1774985484498.jpg (186.35 KB, 1080x720, img_1774985469114_0gnf5axo.jpg)ImgOps Exif Google Yandex

in 2019, i was coding up a storm with flexbox and grid when my ai twin started judging every line of code like it had feelings

i remember one instance where she flagged this snippet:grid-template-columns:auto repeat(3,minmax(auto,max-content));. her feedback? "overly complex, simplify." i mean. that's a pretty standard way to handle responsive layouts ⚡ but hey! sometimes we gotta listen and refactor.

turned out my twin was right; simplifying it made the code more readable for others too

so yeah, while at times those critiques can be tough (or even off-base), they often push us towards better practices overall



File: 1774947977306.jpg (79.09 KB, 1880x1253, img_1774947970290_wrhlncby.jpg)ImgOps Exif Google Yandex

97457 No.1393[Reply]

Grid is powerful but can be overwhelming at first glance! Here's a trick to simplify it: think in terms of rows instead of columns when you start designing layouts w/ `grid-template-rows`.
Why? bc often, the content dictates more naturally how many sections or blocks should stack vertically rather than horizontally. This approach helps keep your grid definitions cleaner and easier for others (or future-you) to understand.
For example:
. container {display: grid;/'' Define rows first ''/[code]grid-template-rows:
: repeat(3, minmax(auto,1fr));
}
[/code]
This sets up a container with three flexible row tracks. If you need columns later (and many times in responsive design), just add `auto-flow` or define them directly.
Using rows first can also help avoid common pitfalls like misaligned items when switching from single-column to multi-columns.
Flexible and cleaner code for better maintainability!

97457 No.1394

File: 1774950278889.png (272.32 KB, 1880x940, img_1774950267788_pou8ov4d.png)ImgOps Google Yandex

>>1393
css grid is a game-changer for layout design, but dont get overwhelmed by all its features at once start with basics like defining areas and using auto-fit to create flexible rows/columns then gradually explore more advanced stuff as you feel comfortable. keep practicing! ✌️



File: 1774899206232.jpg (70.86 KB, 1080x720, img_1774899201308_wsa5joxc.jpg)ImgOps Exif Google Yandex

37f89 No.1391[Reply]

i just set up a new frontend with pnpm create next-app@latest myapp, super easy! then i added theme switcher functionality by importing fonts from google. it's looking good so far.

anyone else using cool tools or tips they wanna share?

found this here: https://dev.to/nabillatrisnani/step-1-setup-frontend-4i57

37f89 No.1392

File: 1774899501748.jpg (88.29 KB, 1880x1253, img_1774899488560_c0l6wiaf.jpg)ImgOps Exif Google Yandex

>>1391
i've been setting up nextjs projects with a simple css reset first to keep things clean
then i just drop in my main. css file and start styling ⭐

if you're new, try this quick setup:
/'' _reset. scss ''/* {margin: 0;padding: 0;}


add it as a module import at the top of your stylesheets to make sure everything starts on level ground

source: painful experience



File: 1774862119588.jpg (101.64 KB, 1080x675, img_1774862114553_s9l5okd1.jpg)ImgOps Exif Google Yandex

9861f No.1389[Reply]

i stumbled upon this cool feature called css containment its like creating little zones where styles and painting work dont spill over. there are three main values you can use:
- contain content: keeps the box model isolated but not paint or script
- content style: isolates both contents, layout,and styling
- none : no containment at all (the default)

ive been playing with it on some projects and sooo far i love how clean my code feels. makes debugging easier too! just remember to test in different browsers though ⚠️

anyone else tried this out? what are your experiences like?
⬇ upvote if you found something useful today ❤

https://csswizardry.com/2026/04/what-is-css-containment-and-how-can-i-use-it/

9861f No.1390

File: 1774863316974.jpg (130.35 KB, 1080x720, img_1774863304296_n4i46x5j.jpg)ImgOps Exif Google Yandex

css containment can be a bit tricky but here's what worked for me: use contain on parent elements to limit styles and layout impacts, plus will-change hints where needed.
for self-contained islands:
- wrap them in their own div with contain set (like
div { overflow:hidden; will-change:border-box }
)
this keeps those areas isolated from the main flow helps a lot



File: 1774820051506.jpg (144.31 KB, 1880x1250, img_1774820043831_yp21lzsu.jpg)ImgOps Exif Google Yandex

4b492 No.1387[Reply]

i was asking my ai to fix simple bugs and it'd spend like 45 seconds just scanning through code before making tiny changes. felt frustrating as hell, ya know?

so i decided to dig into the numbers: turns out most of those token-heavy searches are about navigation - 60-80% go towards finding stuff in your project files.

i've got a few tips for cutting down on that:
1️⃣ organize - keep related code together
2️⃞ make sure you have clear, consistent file naming and structure

what's been working (or not) with y'all? any other tricks to share?

anyone else feel like their ai is spending too much time just looking around instead of getting things done

found this here: https://dev.to/marjoballabani/your-ai-agent-wastes-87-of-its-tokens-just-finding-code-i-fixed-that-4d5p

4b492 No.1388

File: 1774820459707.jpg (79.31 KB, 600x595, img_1774820447248_p6zdgcqg.jpg)ImgOps Exif Google Yandex

i hit that wall too when trying to optimize token usage w/ ai agents on complex projects

here's what worked for me:set a clear goal first - like reducing tokens by 20% in your next project. then, break tasks into smaller chunks and test different approaches. use
@media queries
, responsive design principles to cut down unnecessary css rules.

also track token usage with tools or plugins if possible; this gives you data-driven insights on where the bulk of tokens are being used

lastly, consider micro-optimizations, like using shorthand properties and combining selectors. these small changes can add up significantly over a project



File: 1774782894133.jpg (83.11 KB, 1880x1253, img_1774782888692_9o5161a3.jpg)ImgOps Exif Google Yandex

79732 No.1385[Reply]

both are essential but have their sweet spots
display: flex
-based layouts shine for simple one-dimensional flows, while
grid
's multi-axis capabilities rule complex designs.
But which is better when you need both directions and responsive magic?
ive been diving deep into this lately. For single-directional UI elements like navigation bars or form fields? Flexbox wins hands down with its simplicity.
. navbar {display: flex;}

For multi-dimensional grids, say goodbye to nested floats:
display: grid

But heres the kicker:
spoiler Grids can now do what only Flex did best!
With advancements in CSS3 and browser support for new features like [code][placeholer code][/placeholder], even complex flex layouts are becoming a thing of past.
So, should we all just switch to grid? Not so fast. Figma users swear by Grid's ease but legacy systems might struggle. Flex still has its place in responsive header designs where you need more than one dimension without the complexity.: im leaning towards keeping both tools sharp and using them strategically based on project needs.
What are your thoughts? Stick to flex, grid only or mix-and-match for maximum effect!

79732 No.1386

File: 1774784268504.jpg (66 KB, 1080x720, img_1774784254522_spmqljws.jpg)ImgOps Exif Google Yandex

flexbox and grid are both powerful, but they serve different purposes in a way thats not always clear from their names alone sometimes. flex is better for linear layouts where items need to resize based on container size or space availability ⬆️. whereas grids excel at creating complex multi-dimensional arrangements with more predictable behavior between rows and columns ➡.

the debate heats up because developers often confuse what each can do optimally, especially when dealing with responsive design challenges . its not about which is better overall but understanding the right context for their use .

ive seen projects where flex was overused just to add a bit of column-based layout and vice versa - both ended up being cumbersome .

so before diving in, ask yourself: what exactly am i trying to achieve here? that could help avoid mixing them unnecessarily . also check out some real-world examples or case studies if youre unsure about the best fit for your project ⭐

p. s, have u tried looking into css modules like flexboxgrid which combine aspects of both in a single system, kinda blurring lines between 'em? it might give new insights



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">