economics
Import it with :economics, then call its constructs under that name.


@use:economics#Constructs
economics.supply-demandSupply and demand crossing, with the equilibrium marked and dropped to both axes.


aThe supply curve's price intercept, in .
Default
1bThe supply curve's slope, in .
Default
1cThe demand curve's price intercept, in .
Default
11dThe demand curve's slope, in .
Default
1qmaxThe quantity both curves are drawn out to.
Default
10labelThe equilibrium point's label.
inlineDefault
$E$supply-labelThe supply curve's label.
inlineDefault
$S$demand-labelThe demand curve's label.
inlineDefault
$D$price-labelThe dashed segment's label on the price axis.
inlineDefault
$p^*$quantity-labelThe dashed segment's label on the quantity axis.
inlineDefault
$q^*$colourThe equilibrium point and the dashed segments' colour.
paintDefault
greysupply-colourThe supply curve's colour.
paintDefault
bluedemand-colourThe demand curve's colour.
paintDefault
redeconomics.demand-shiftDemand shifted, drawn dashed over the original with the new equilibrium marked:
by is how far up the price axis the whole curve moves, positive for an increase in demand.

aThe original supply curve's price intercept, in .
Default
1bThe original supply curve's slope, in .
Default
1cThe original demand curve's price intercept, in .
Default
11dThe original demand curve's slope, in .
Default
1byHow far up the price axis demand shifts, positive for an increase in demand.
Default
3qmaxThe quantity the shifted curve is drawn out to.
Default
10labelThe shifted demand curve's label.
inlineDefault
$D'$point-labelThe new equilibrium point's label.
inlineDefault
$E'$colourThe shifted curve and new equilibrium point's colour.
paintDefault
orangeeconomics.supply-shiftSupply shifted, the same way:
by positive is a rise in costs, which moves the curve UP and the equilibrium quantity down.

aThe original supply curve's price intercept, in .
Default
1bThe original supply curve's slope, in .
Default
1cThe original demand curve's price intercept, in .
Default
11dThe original demand curve's slope, in .
Default
1byHow far up the price axis costs rise, which moves the curve up and the equilibrium quantity down.
Default
2qmaxThe quantity the shifted curve is drawn out to.
Default
10labelThe shifted supply curve's label.
inlineDefault
$S'$point-labelThe new equilibrium point's label.
inlineDefault
$E'$colourThe shifted curve and new equilibrium point's colour.
paintDefault
purpleeconomics.surplusConsumer and producer surplus as the two triangles they are: everything between the curve and the equilibrium price, either side of it. Shaded polygons rather than
integrals, because an integral shades down to the AXIS and a surplus stops at the price.

aThe supply curve's price intercept, in .
Default
1bThe supply curve's slope, in .
Default
1cThe demand curve's price intercept, in .
Default
11dThe demand curve's slope, in .
Default
1consumer-labelThe consumer surplus triangle's label.
inlineDefault
$CS$producer-labelThe producer surplus triangle's label.
inlineDefault
$PS$consumer-colourThe consumer surplus triangle's colour.
paintDefault
tealproducer-colourThe producer surplus triangle's colour.
paintDefault
orangeeconomics.tax-wedgeA per-unit tax: supply shifted up by the tax, the price the buyer pays and the price the seller keeps ruled across, and the deadweight loss between them as its own triangle. The wedge is the tax itself — the two rules are exactly
t apart, because the seller's price is the buyer's less the tax and nothing here rounds.

aThe supply curve's price intercept before the tax, in .
Default
1bThe supply curve's slope, in .
Default
1cThe demand curve's price intercept, in .
Default
11dThe demand curve's slope, in .
Default
1tThe per-unit tax, the exact gap between what the buyer pays and the seller keeps.
Default
2qmaxThe quantity the curves are drawn out to.
Default
10labelThe taxed supply curve's label.
inlineDefault
$S + t$buyer-labelThe ruled line's label at the price the buyer pays.
inlineDefault
$p_b$seller-labelThe ruled line's label at the price the seller keeps.
inlineDefault
$p_s$loss-labelThe deadweight loss triangle's label.
inlineDefault
$DWL$colourThe taxed supply curve and the two price rules' colour.
paintDefault
greyloss-colourThe deadweight loss triangle's colour.
paintDefault
redeconomics.budget-lineA budget line: everything an income of buys at two prices, with both intercepts dotted. Inside it is affordable, beyond it is not.


mThe income the budget line is drawn for.
Default
12p1The price of the good on the x axis.
Default
2p2The price of the good on the y axis.
Default
3labelThe budget line's own label.
inlineDefault
x-labelThe x-intercept's label.
inlineDefault
$m/p_1$y-labelThe y-intercept's label.
inlineDefault
$m/p_2$colourThe line and both intercept points' colour.
paintDefault
blueeconomics.ppfA production possibility frontier — the concave arc of everything an economy can make at once — with one efficient point on it dropped to both axes, which is the trade-off the diagram exists to show. A quarter ellipse, so the frontier bows outward and the opportunity cost of the first good rises as more of it is made.
at is how far round the arc the point sits, as a fraction. fill-style shades everything inside it — the attainable set. The region closes through the origin, because that is what "attainable" means here: making less of both is always possible.

x-maxThe frontier's intercept on the x axis, the most of that good the economy can make alone.
Default
10y-maxThe frontier's intercept on the y axis, the most of that good the economy can make alone.
Default
8atHow far round the arc the marked point sits, as a fraction from 0 to 1.
Default
0.4fill-styleHow the attainable set inside the frontier is filled — outlined leaves it empty.
enumDefault
outlinedlabelThe frontier curve's label.
inlineDefault
$PPF$point-labelThe marked point's label.
inlineDefault
$A$colourThe frontier curve's colour.
paintDefault
bluepoint-colourThe marked point and its dropped segments' colour.
paintDefault
orange