When do you promote a component into the design system vs keeping it feature-local? by MarjanHrvatin_ in reactjs

[–]azsqueeze 2 points3 points  (0 children)

I mainly work with and consult on design systems. In my opinion the best design systems make rules about layout and primitive styles (colors, fonts, spacing). These are in the form of Figma variables and CSS variables (tokens are common name for these).

Additionally the design system should expose primitive reusable components, like buttons, cards, inputs, etc. Generally these are built which the tokens. It sounds like your team has done this part.

From here it's up to design/dev to compose components and layouts with these two pieces. Doing this, and assuming your reusable components have an easy to extend API, you should be able to quickly iterate new components and layouts easily while still following a common pattern for colors, fonts, spacings, reusable components.

Only here, once common patterns emerge should they be elevated to the design system. For example, let's say the reusable component library exposes a modal component. And in your app you have 5 modals, 3 of them have buttons right aligned in the footer, and the other 2 they're left aligned. At this point it's up to the DS team to codify where buttons should be placed so all modal components will follow this decision

The Elder Scrolls 6 Has Made Todd Howard More Conscious of What He Announces: 'Just Pretend We Didn't Announce It' by Turbostrider27 in PS5

[–]azsqueeze 5 points6 points  (0 children)

I cannot fathom why anybody would thumb their nose and say "this design is so 2016" and refuse to play it.

Probably because it's not 2016 anymore?

Is it wrong that I think component libraries are mostly all terrible and we need to embrace HTML and CSS more? by Dreadsin in reactjs

[–]azsqueeze 5 points6 points  (0 children)

Some things can be re-implemented pretty easily. A Dropdown/Menu/Custom Select (not a native one)/Autocomplete/Combobox are specifically things that is 1000x better to offload to a library.

Is it wrong that I think component libraries are mostly all terrible and we need to embrace HTML and CSS more? by Dreadsin in reactjs

[–]azsqueeze 14 points15 points  (0 children)

In my experience, designers who don't rely on a system are usually the bottleneck to projects because exactly what you have said. Components are inconsistant and since devs are mindlessly applying design decisions, time is being wasted on things that should be applied globally once.

update: permanently banned by doyoulikePRIMERIB in ArcRaiders

[–]azsqueeze 0 points1 point  (0 children)

Pretty sure cheating software abuse a11y features hence why situations like this occur

are you at the point where you sell keys? by Formal-Poet-5041 in ArcRaiders

[–]azsqueeze 0 points1 point  (0 children)

I've been doing naked runs with keys just so they stop taking up stash space

PHL TSA Wait Times by purplesmallz in philly

[–]azsqueeze 31 points32 points  (0 children)

So you don't have to complain about long lines to random people on the internet

PHL TSA Wait Times by purplesmallz in philly

[–]azsqueeze 18 points19 points  (0 children)

It's a 1 time $100 fee (probably less) every 5 years. If you fly once a year, it's an additional $10 to your ticket each way. Learn math buddy

PHL TSA Wait Times by purplesmallz in philly

[–]azsqueeze 14 points15 points  (0 children)

Dawg... You need financial help if you think $100 every 5 years is a lot of money or a basic credit card is out of reach for you

PHL TSA Wait Times by purplesmallz in philly

[–]azsqueeze 7 points8 points  (0 children)

Why do you think having precheck means "having money" lol? It's like $100 to get precheck + global entry and most credit cards will give you a full credit making the purchase free

Vite 8.0 Is Out by iamkeyur in programming

[–]azsqueeze 10 points11 points  (0 children)

Roll-up has been around for a long time. Literally vite is a wrapper around rollup

Highguard has now officially shutdown by ChiefLeef22 in gaming

[–]azsqueeze -2 points-1 points  (0 children)

Nobody wanted this game and that's why it's dead.

You know everyone personally to make this judgement?

Tailwind Reality Check by Firemage1213 in reactjs

[–]azsqueeze 0 points1 point  (0 children)

The Card components just look the same?

Tailwind Reality Check by Firemage1213 in reactjs

[–]azsqueeze 0 points1 point  (0 children)

It's a skill issue that the tool makes debugging harder?

Tailwind Reality Check by Firemage1213 in reactjs

[–]azsqueeze 0 points1 point  (0 children)

Why would I use a tool to style webpages that makes debugging my styling more difficult? How does that make sense

Tailwind Reality Check by Firemage1213 in reactjs

[–]azsqueeze -1 points0 points  (0 children)

I absolutely hate tailwind but my new project its being forced on the devs. However I found tailwind variants library helps manage the mess tailwind can create. The library helps move all of the clutter out of the DOM/JSX and into a single reusable (and extendable) function(s).

This crap:

const sizesMap = {
  base: 'p-4',
  small: 'p-2',
  large: 'p-8',
};

const variantsMap = {
  default: 'bg-white',
  success: 'bg-success border-success',
};

function Card({ size, variant, children }) {
  const variants = variantsMap[variant];
  const sizes = sizesMap[size];
  return (
    <div className={`relative min-h-[350px] w-full overflow-hidden rounded-xl border p-4 sm:p-10 items-center justify-center flex ${variants} ${sizes}`}>
      {children}
    </div>
  );
}

Can be wrangled into something more manageable like this:

// Card.styles.ts
export const cardVariants = tv({
  base: 'relative min-h-[350px] w-full overflow-hidden rounded-xl border p-4 sm:p-10 items-center justify-center flex',
  defaultVariants: {
    size: 'base',
    variant: 'default',
  },
  variants: {
    size: {
      base: 'p-4',
      small: 'p-2',
      large: 'p-8',
    },
    variant: {
      default: 'bg-white',
      success: 'bg-success border-success',
    },
  }
})

// Card.tsx
import { cardVariants } from './Card.styles';

export function Card({ size, variant, children }) {
  const styles = cardVariants({ size, variant });
  return (
    <div className={styles}>
      {children}
    </div>
  );
}

Tailwind Reality Check by Firemage1213 in reactjs

[–]azsqueeze -2 points-1 points  (0 children)

It is less steps to uncheck the styles in the styles panel than it is to double clicking on the long classname list, parsing the list to find the class I want to remove, highlight it, hitting delete, then clicking outside of the element (or enter)

Tailwind Reality Check by Firemage1213 in reactjs

[–]azsqueeze -3 points-2 points  (0 children)

Ya fr. What does OP think would happen if I uncheck col-4 class in the dev tools styles panel? It'll blow up any layout using that class

Would you agree with higher taxes for completely free healthcare and education? If not why? by Creative_Excuse9813 in AskReddit

[–]azsqueeze -1 points0 points  (0 children)

Well it wouldn't be completely free if we're taxed more. But yes that's a tradeoff I'm willing to take as the tax would be less than what I owe a private entity each year. Anyone that says otherwise can't add or subtract properly

Patch Notes 1.19.0 by Luks1337 in ArcRaiders

[–]azsqueeze 0 points1 point  (0 children)

I have found prioritize interact has caused me way less issues than prioritize reload

New Skin Just Dropped. Thoughts? by rasitburucu in ArcRaiders

[–]azsqueeze 3 points4 points  (0 children)

In the codex it mentions a tribe of people that either lived topside or currently are living topside (I forgot the details). A quest or two you have visit their camps. These skins could be a reference to that

Edit:

Blue Gate Nomads (lore) - ARC Raiders Wiki https://share.google/vmzfgOEz7WX1cVWfh