egg.sh

Why egg.sh

Egg.sh (pronounced eggshell) is a roblox lua library that makes roblox gui styling fun. Styling gui in roblox gets tedious very quickly due to all the properties. Many things simply don't make sense, such as padding and border radius being children instead of properties. Egg.sh allows devs to style gui very similar to css. It also allows us to create new elements with ease and skip the long unnecessary code.

Out Latest Version: v0.4

Changelog:


How To Use

After clicking download, you should get a .rbxm file. simply import this into roblox, open the model and drag the eggshell folder into replicated storage. To use, just use require to import it.


You can find the download above


To start using it, you can write the following code:



local eggsh = require(game.ReplicatedStorage.Shared.eggshell.Main);
local StarterGui = game:GetService("StarterGui");

local Div01 = eggsh.ESGui.New("Frame", "Div01", StarterGui.Screen, {
	BorderRadius=20,
    Display="List",
    Position=UDim2.new(0,15,0,15),
    -- AnchorPoint=Vector2.new(0.5,0.5),
    Size=UDim2.new(0,550,0,250),
    Active=true,
    BackgroundColor3=Color3.fromHex("#111"),
    BackgroundTransparency=.15,
    Padding=10,
    HorizontalAlign="Center",
    VerticalAlign="Center",
});